473,809 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

communicating with Java (from Python)


Hi,

I want to communicate my Python application with the Java one.
The most obvious choice is XML-RPC, but ... I wonder about something
more pythonic and powerful, like pyro.

Could you suggest something?

Using Jython to be able to use pyro is not technically feasible.

.... A scientist builds in order to learn; an engineer learns in order to
build.
-- FRED BROOKS
Jul 18 '05 #1
4 1629
Max Ischenko <ma*@ucmg.com.u a.remove.it> writes:
Hi,

I want to communicate my Python application with the Java one.
The most obvious choice is XML-RPC, but ... I wonder about something
more pythonic and powerful, like pyro.

Could you suggest something?

Using Jython to be able to use pyro is not technically feasible.

... A scientist builds in order to learn; an engineer learns in order
to build.
-- FRED BROOKS


There was a thread to this topic a few weeks ago and XML-RPC came up
as the best bet, even for on-the-same-box communication.

I'd really like to try JPE:
http://jpe.sourceforge.net/
When I tried to run it, I couldn't get the pieces to compile (it's
been a while so I don't remember details).

--
ha************@ boeing.com
6-6M31 Knowledge Management
Phone: (425) 342-5601
Jul 18 '05 #2
> I want to communicate my Python application with the Java one.
The most obvious choice is XML-RPC, but ... I wonder about something
more pythonic and powerful, like pyro.

Could you suggest something?

Using Jython to be able to use pyro is not technically feasible.


I know some work has been done porting twisted's perspective broker
(PB) to java. That could be an interesting way to go.

Jul 18 '05 #3
Harry George wrote:
I want to communicate my Python application with the Java one.
The most obvious choice is XML-RPC, but ... I wonder about something
more pythonic and powerful, like pyro.

There was a thread to this topic a few weeks ago and XML-RPC came up
as the best bet, even for on-the-same-box communication.


OK, thanks.
Jul 18 '05 #4
In article <c0**********@h yppo.gu.net>,
Max Ischenko <ma*@ucmg.com.u a.remove.it> wrote:
I want to communicate my Python application with the Java one.
The most obvious choice is XML-RPC, but ... I wonder about something
more pythonic and powerful, like pyro.


Depending on how complex your problem is, CORBA may be a sensible
choice. If your communication needs map easily to XML-RPC, I'd go with
that. On the other hand, if you find yourself having to explicitly
manage lots of state, to make up for the lack of objects in an RPC
system, CORBA is a good choice. It is a full object oriented system
like pyro, just standardised and cross platform.

Cheers,

Duncan.

--
-- Duncan Grisby --
-- du****@grisby.o rg --
-- http://www.grisby.org --
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3476
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data "proves" something) to consider the next time the "Python makes developers more productive" thread starts up again. Background ========== An employee who left our company had written a log processor we use to read records from text files (1...
2
1843
by: Eric Brunel | last post by:
Hi all, We're trying to communicate with Microsoft Visual C++ 6.0 via COM to make it perform a few operations. Our main need is to set a breakpoint on a given line in a given file. We ended up with the following script: --------------------------------------------- import win32com.client import time
1
47616
by: greg.knaddison | last post by:
Hi, I'm trying to use the httpclient within Jython (see http://jakarta.apache.org/commons/httpclient/ for more information on the httpclient). My Jython version is: Jython 2.1 on java1.4.2_04 (JIT: null) My Java version is:
114
9901
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
11
9283
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
1
1626
by: valere | last post by:
I look for information for communicating between JavaScript and a native plugin. I noticed that LiveConnect is oriented to communicate as a "bridge" between Java and JS. But how to process with a native plugin ? Thanks in advance for answering to the newbye I am.
12
5933
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for inheritance (yet).
4
4804
by: Mikael Olofsson | last post by:
I am interested in peoples experience with communicating with DLLs under Linux. Situation: I'm an electrical engineer that finds pleasure in using my soldering iron from time to time. I also find programming, preferably in Python, entertaining. I wouldn't call myself a programmer, though. Now, I may have found a hobby project that could give me the pleasure from both those worlds. There's this USB development gadget for sale in my
1
1271
by: Evrim | last post by:
Dear All I am using JDK 6 , Tomcat 6 and Jena 2.5.2. I would like to use javascript on my jsp page to pass the values of text boxes to a java function I have. This java function uses the Jena library to extract some info from OWL file based on parameters passed to it . I'd extremely apprecite you help : Assuming my jsp page is in folder \webapps\mytest and Jena
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.