This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Distributed Java and the fly likes CORBA ImplBase file not generated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "CORBA ImplBase file not generated" Watch "CORBA ImplBase file not generated" New topic
Author

CORBA ImplBase file not generated

Bashar Abdullah
Greenhorn

Joined: Mar 29, 2005
Posts: 14
Hi,

i am totally new to CORBA and am kind of stuck in a project with it. I have gone through several examples on CORBA, and all of them agree to the fact, when I compile the IDL file, it should generate the ImplBase.java file.

I have gone through the example I have and ran the idlj command, got six files but did not get the one mentioned above. Below is the IDL file I used:

module clock {

// Defintion of CORBA enabled service
interface SystemClock {
long long currentTimeMillis();
};
};


and the command is: idlj -td src -pkgPrefix clock com.deitel.advjhtp1.idl -fall systemclock.idl

idlj version is 3.1 I have confirmed that. I get the following files:

_SystemClockStub.java
SystemClock.java
SystemClockHelper.java
SystemClockHolder.java
SystemClockOperations.java
SystemClockPOA.java

Can anyone please help.

Thanks
Vijayakumar Chandran
Greenhorn

Joined: Apr 13, 2005
Posts: 2
you may be using higher version of JDK, i.e.,1.4 or more than 1.4.

JDK 1.4 uses a POA (Portable Object Adapter) and generates a file called "<idl name>POA.java"
JDK 1.3 uses a BOA (Portable Object Adapter) generates a file called "<idl name>ImplBase.java" instead.

The BOA�s main purpose is to allow an object server to interact with the ORB. A server process uses the BOA to tell the ORB when an object is ready to perform operations. The BOA has been deprecated by the OMG and replaced by the POA. So the Later versions of Jdk from Jdk1.4 supports POA bydefault and generates "POA.java" instead of "ImplBase.java"
Anyway here is the command to create ImplBase.java "idlj -fall -oldImplBase <idlfile>" using JDK 1.4 or higher.

The Portable Object Adapter (POA) supercedes the Basic Object Adapter (BOA) as the primary way of making implementation objects available to the ORB for servicing requests.

you can try these simple examples from sun site to play around
http://java.sun.com/j2se/1.4.2/docs/guide/idl/jidlExample.html

hope this suffices.

Regards,
Vijayakumar
Bashar Abdullah
Greenhorn

Joined: Mar 29, 2005
Posts: 14
Thanks very much. I had doubts about the JDK Version.

Thanks for the link as well
M Joraid
Greenhorn

Joined: Apr 13, 2012
Posts: 2
Can someone please tell how to overcome this problem ?? Please .
 
Don't get me started about those stupid light bulbs.
 
subject: CORBA ImplBase file not generated