File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes java Corba ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java Corba ?" Watch "java Corba ?" New topic
Author

java Corba ?

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
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
Test.java
TestOperations.java
TestPOA.java
_TestStub.java
TestHelper.java
TestHolder.java

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java Corba ?