Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Objects as parameters to a remote method call to a corba object

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how do i pass a java object as parameter to a remote method call on a corba object.
 
the java object should also have an idl. You have to create an idl for the object and put as a parameter for the method, in the same file or different file.if u want to use predefined java objects like vectors, and other java object types then try with Any class provided in org.omg.CORBA package.
 
How can I use Any to pass a java object(say vector) as parameter?
An any can contain a primitive data or a CORBA object, How can it contain a java object?
 
In Any class, there is insert_Value(java.io.Serializable) and
java.io.Serializable exract_Vlaue() function.
I create a object which implement Serializable interface, then call insert_Vlaue(java.io.Serializable), I can compile sucessfully, but there are some probelm when I run the problem. The error
message is like:
org.omg.CORBA.BAD_PARAM: Type null incompatible with value...

Can anyone tell me what is the problem?
how I can I inert a java Serializable object
to any and pass in corba?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top