• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CORBA ImplBase file not generated

 
Bashar Abdullah
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much. I had doubts about the JDK Version.

Thanks for the link as well
 
M Joraid
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell how to overcome this problem ?? Please .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic