aspose file tools
The moose likes Distributed Java and the fly likes passing/returning objects in CORBA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "passing/returning objects in CORBA" Watch "passing/returning objects in CORBA" New topic
Author

passing/returning objects in CORBA

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
This question might actually be a reworded version of Colin's question, but I will put it more in layman's terms. Is there a way in CORBA to pass objects as parameters to methods (or operations as they are called in CORBA) or to return objects as return values from methods/operations?? It would seem like CORBA would be very limited if it were restricted to passing and returning only primitive types.
------------------
Sun Certified Java Programmer
-Walter
Dinesh Sadhvani
Greenhorn

Joined: Apr 04, 2001
Posts: 5
Well two things here
one is a simple object passing yes u can pass objects declare <struct>'s in CORBA idl. U can return these or pass these (in or inout or out).

another is Pass-by-Value with CORBA 2.3 u can pass objects by Value using the Value and ValueHolder interfaces.

Hope it helps
Dinesh
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The object I am looking to pass is already implemented in Java. It is a not-so-simple yet not-so-complex storage object that has a fairly shallow inheritance tree. We are currently porting an interface from Java to CORBA. Would I have to reimplement the object in CORBA or is it possible to inherit a CORBA object from a Java object perhaps? Is there a reverse compiler from Java to CORBA (perhaps the Java-to-IDL compiler would do this)?

------------------
Sun Certified Java Programmer
-Walter
 
 
subject: passing/returning objects in CORBA
 
Threads others viewed
ORB.init()
Q: CORBA/Java passing objects
toString() method
in JRMP objects are passed by value, what about corba?
How to make class immutable ?
IntelliJ Java IDE