Call us on 0190 864 5717
Fax - 087 016 02754

The Test Place
 


Section::Home



Accounting
for freelancers and contractors



 


 

Talks Seminars etc by Neil Martin

CORBA Portable Object Adapter

With JDK14 Sun have introduced the POA, there were however few examples of performing call backs using the POA.
So below is a small example program that demonstrates POA with call backs.

poacallbackdemo.zip 

POA Call Back Demo (From README file in above ZIP)
=================================================================================
This is a simple demo demonstrating call back using POA and JDK14
please note that JDK14 has a bug in the Applet code and so you cannot use the POA
and Applets, hence I have used a simple Swing Application as the class.

The application is a simple chat server. 

Building the class files

(1)
Run the batch file CompileIDL this invokes the idlj compiler, note it neeeds to be the
one supplied with JDK14. When successfult I get the following:

03/07/2002 15:34 318 CORBAChat.java
03/07/2002 15:34 1,892 CORBAChatHelper.java
03/07/2002 15:34 774 CORBAChatHolder.java
03/07/2002 15:34 375 CORBAChatOperations.java
03/07/2002 15:34 2,242 CORBAChatPOA.java
03/07/2002 15:34 1,223 CORBAChatPOATie.java
03/07/2002 15:34 342 CORBAChatServer.java
03/07/2002 15:34 1,982 CORBAChatServerHelper.java
03/07/2002 15:34 828 CORBAChatServerHolder.java
03/07/2002 15:34 545 CORBAChatServerOperations.java
03/07/2002 15:34 2,702 CORBAChatServerPOA.java
03/07/2002 15:34 1,485 CORBAChatServerPOATie.java
03/07/2002 15:34 3,240 _CORBAChatServerStub.java
03/07/2002 15:34 2,475 _CORBAChatStub.java

Make sure you class path is set to .
set classpath=.;

Now from the directory where the original files and batch files are, compile
all the java javac *.java

Run RunORBD.bat
No messages are emitted

Run RunServer.bat
This should emit the message
[ Server ready bound Chat server object OK: ]