dcsimg
IDL,Corba and vectors!!! (java)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   panosjava_j
Posted On:   Thursday, November 16, 2006 12:07 PM

Hey all, how can i declare a vector to my IDL? i want to have sth like the following interface Job { typedef sequence VectorOfServers; void addService(in TheCallbackInterface objRef, in long data, in VectorOfServers listOfServers); }; and how can i use that in my java file? i ve tried toooo many things and nothing seems to work... when i try to invoke the function i get the following msg C:Documents and SettingsP@nosDesktopEclipse TempWorkflowFramework00>java Client Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method addService(TheC   More>>

Hey all,

how can i declare a vector to my IDL?

i want to have sth like the following


interface Job

{


typedef sequence VectorOfServers;


void addService(in TheCallbackInterface objRef, in long data, in VectorOfServers listOfServers);



};



and how can i use that in my java file?
i ve tried toooo many things and nothing seems to work... when i try to invoke the function i get the following msg

C:Documents and SettingsP@nosDesktopEclipse TempWorkflowFramework00>java Client


Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method addService(TheCallbackInterface[])
in the type JobOperations is not applicable for the arguments (Vector)

at Client.main(Client.java:68)



any help plz?

   <<Less

Re: IDL,Corba and vectors!!! (java)

Posted By:   panosjava_j  
Posted On:   Friday, November 17, 2006 09:52 AM

and the reason is because i am trying to declare a vector in the idl but in the java implementation it is "converted" to an array.. so i cannot use a vector in my java code..

any help?
About | Sitemap | Contact