• Post Reply Bookmark Topic Watch Topic
  • New Topic

java Corba ?  RSS feed

Sam Doder
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused about a few things with how the idlj works with corba.

Question 1)
When I compile my module called Test.idl with idlj I get 6 java files
I am just confused about what goes with what.
I have for instance

Ok so here is my understanding TestOperations is the interface that defineds all the functions given in the Test.idl.
Test.java is just an interface that extends TestOperations and adds nothing else could have used just TestOperations.
TestPOA correct me if I am wrong is used for the serverside corba call this is where you extend this abstract class and code the functions that are to be called by the clientside.

Ok if I am correct so far then great. Here is my trouble area...
_TestStub.java looks like this is the clientside class that calls the serverside class.
TestHelper.java and TestHolder.java seem just to be the classes used by _TestStub.java to write/read the object over the network.

Question 2)
If my understanding is correct then here is my main problem.
I have a big corba project that the serverside was written in C/C++ using idl but the clientside uses java idlj. I am adding on to some of the clientside code as well as creating standalone class's that use the serverside functions but I cann't get it to work. I keep getting an runtime error saying this

I am trying to invoke the functions by creating a new _TestStub in my main method and calling _TestStub functions is this not the correct way of calling a corba function?
What does the delgate not set mean and how do I correct that.

Thanks for any help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!