473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Correct Versions to execute Corba calls using omniORBpy and omniORB.

Hi, I just want to execute a script that used omniORB, omniORBpy
Python,

Here are the version that I Tried, is this correct ?

omniORBpy 2.5
omniORB 4.0.5
Python 2.4.1

The script is below:

#!/usr/bin/env python

import sys
from omniORB import CORBA, PortableServer

# Import the stubs and skeletons for the Example module
import Example, Example__POA

# Define an implementation of the Echo interface
class Echo_i (Example__POA.Echo):
def echoString(self, mesg):
print "echoString() called with message:", mesg
return mesg

# Initialise the ORB
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)

# Find the root POA
poa = orb.resolve_initial_references("RootPOA")

# Create an instance of Echo_i
ei = Echo_i()

# Create an object reference, and implicitly activate the object
eo = ei._this()

# Activate the POA
poaManager = poa._get_the_POAManager()
poaManager.activate()

# Call the object's echoString() operation

message = "Hello"
result = eo.echoString(message)

print "I said '%s'. The object said '%s'." % (message,result)
What are the correct version i should use ?

Jul 18 '05 #1
0 1203

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

Similar topics

3
by: Duncan Grisby | last post by:
omniORB version 4.0.2 and omniORBpy 2.2 are now available. omniORB is a robust, high performance CORBA ORB for C++. omniORBpy is a version for Python. They are freely available under the terms of...
1
by: Birgit Rahm | last post by:
Hello newsgroup, is this the right group to ask about the logging of Corba while usingomniORB for Python? I know that there are 3 funktions in the Corba package. But I dont know, where I can...
1
by: RajaSrinivasan | last post by:
can we script CORBA objects/events with python. my search for simple examples has not yielded any results. any help appreciated.
3
by: gerald.maher | last post by:
Hi, I am trying to excuate the follwong code: I get the following error: Here is my Lib path:
7
by: Dave | last post by:
Hi, I heard that CORBA/TAO is not only overkilled for most of client/server appplication, it also has serious compatibility problem with its older version. CORBA/TAO tend to be a general purpose...
6
by: rodmc | last post by:
Can anyone recommend an easy to install COBRA implementation which works with Python? I am using Windows XP. Thanks in advance. Best, rod
6
by: rodmc | last post by:
Hi, I have installed Fnorb and everything seems to have gone ok. However I keep getting the error message below. This is despite the fact that the MS CL c++ preprocessor seems to be in PATH. I...
4
by: Sai Krishna M | last post by:
Hi everybody, i have been developing web based applications using python+cheetah. The numbers are increasing. The applications have many common parts of code. Though these applications are...
6
by: Samuel | last post by:
Hi, I am trying to get the files from this tutorial to work: http://www.grisby.org/presentations/py10code.html Direct link to the files: http://www.grisby.org/presentations/py10code/adder.idl...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
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,...

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.