• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return a complex Datatype with JacORB (CORBA)

Fritz Muellerlich
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a problem using JacORB with complex return types and I can't solve it. I thought this is a simple question for CORBA users, but at several other forums the members could not help me . I´m shure there are a lot of programmers that do exactly what I want each day, because this is just a normal usage of CORBA.

My IDL Definition is (shorted):

I´ve implemented both classes using the tie approach, my Java code looks like this:

Now I really don´t know, how I can return an object that implements the interface Session (JacORB created for both classes "Bank" and "Session" die Java classes/interfaces "*", "*Helper", "*Holder", "*Operations", "*POA", "*POATie").

I just can't return something like

because SessionPOATie does not implement the interface Session. Even more, no generated class does this! So I do not know how to return just an object that implements Session. (The "father" object "Bank" I can look up well using a nameservice (exactly like described in the Tut), but I don't want to give each member of the father object a separate name, of course.

Can anybody help me?

Thank you very much for your help ,

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic