IDL and array of objects
Hey all...
in my idl i have declared sth like :
interface Job
{
struct lineArrayServers{
string objServerRef;
string functionName;
};
};
interface Services{
typedef sequence <Job> arrayOfServers;
void addService(in TheCallbackInterface objRef, inlong data, in arrayOfServers arOfServers);
void multiplyService(in TheCallbackInterface objRef, inlong data, in arrayOfServers arOfServers);
void sendNextServer(in TheCallbackInterface objRef, inlong data, in arrayOfServers nextServer);
};
};
for the implementation of the addService function i have sth like the following
publicvoid addService(TheCallbackInterface objRef,int data, Job jobServers[]){
System.out.println("Add server : "+data);
int tempresult=0;
tempresult = data + data;
System.out.println("Add server : tempresult is "+tempresult);
sendNextServer(objRef, tempresult, jobServers);
};
publicvoid sendNextServer(TheCallbackInterface objRef,int data, Job jobServers[]){
System.out.println(me.toString());
[b]System.out.println("obj ref tou pinaka "+jobServers[0].objServerRef);[/b]
of course it fails to access the objServerRef from the array jobServers. As far as i can understand I want to access the objServerRef string of the object that is in the first record of jobServers[]....
semantically i should make some get and set functions right? the thing is that this class (Job) is made automatically from the IDL...
how can i access the string variable of an object class Job that is in an array ?

