Java/CORBA Client & C++/CORBA server

Java/CORBA Client & C++/CORBA server

Post by vadi.. » Fri, 23 Jun 2000 04:00:00



Folks,

I am trying to get a simple HelloWorld app.
working using C++/CORBA server running in
Orbix2000 ORB on Solaris and Java (jdk1.3) client
running in NT.
resolve_initial_references("NameService") throws
OBJECT_NOT_EXIST exception. Is there anything
that I need to run on the client side? BTW,
list_initial_services() also throws the same
exception. So, what object is supposed to exist
and where?

bellow is the java code snippet.

thanks,

vadim

Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "4700");
props.put
("org.omg.CORBA.ORBInitialHost", "192.168.100.36")
;
ORB orb = ORB.init(args, props);
org.omg.CORBA.Object obj =
orb.resolve_initial_references("NameService");

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Java/CORBA Client & C++/CORBA server

Post by Bill Lloy » Fri, 23 Jun 2000 04:00:00


JDK 1.3 does not support the interoperable naming service.  Take the IOR of
IONA's NS (it's in the config file) and hardcode it into your client, and
then _narrow() it.  So long as you don't uninstall Orbix 2000, the IOR won't
change.

-B


> Folks,

> I am trying to get a simple HelloWorld app.
> working using C++/CORBA server running in
> Orbix2000 ORB on Solaris and Java (jdk1.3) client
> running in NT.
> resolve_initial_references("NameService") throws
> OBJECT_NOT_EXIST exception. Is there anything
> that I need to run on the client side? BTW,
> list_initial_services() also throws the same
> exception. So, what object is supposed to exist
> and where?

> bellow is the java code snippet.

> thanks,

> vadim

> Properties props = new Properties();
> props.put("org.omg.CORBA.ORBInitialPort", "4700");
> props.put
> ("org.omg.CORBA.ORBInitialHost", "192.168.100.36")
> ;
> ORB orb = ORB.init(args, props);
> org.omg.CORBA.Object obj =
> orb.resolve_initial_references("NameService");

> Sent via Deja.com http://www.deja.com/
> Before you buy.


 
 
 

Java/CORBA Client & C++/CORBA server

Post by Vadim Kat » Fri, 23 Jun 2000 04:00:00


Bill, lots of thanks. You got me going...
However, the fact that jdk1.3 does not support IONS is most
frustrating. Is there any info on why and when such support would be
provided. I don't want to reply on IORs. In addition, I have to use
IONA's _narrow() implementation which ties me to IONA on the client
side and I want to avoid that also.

Thanks again,

vadim



> JDK 1.3 does not support the interoperable naming service.  Take the
IOR of
> IONA's NS (it's in the config file) and hardcode it into your client,
and
> then _narrow() it.  So long as you don't uninstall Orbix 2000, the
IOR won't
> change.

> -B




Quote:> > Folks,

> > I am trying to get a simple HelloWorld app.
> > working using C++/CORBA server running in
> > Orbix2000 ORB on Solaris and Java (jdk1.3) client
> > running in NT.
> > resolve_initial_references("NameService") throws
> > OBJECT_NOT_EXIST exception. Is there anything
> > that I need to run on the client side? BTW,
> > list_initial_services() also throws the same
> > exception. So, what object is supposed to exist
> > and where?

> > bellow is the java code snippet.

> > thanks,

> > vadim

> > Properties props = new Properties();
> > props.put("org.omg.CORBA.ORBInitialPort", "4700");
> > props.put
> > ("org.omg.CORBA.ORBInitialHost", "192.168.100.36")
> > ;
> > ORB orb = ORB.init(args, props);
> > org.omg.CORBA.Object obj =
> > orb.resolve_initial_references("NameService");

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Java/CORBA Client & C++/CORBA server

Post by Bill Lloy » Fri, 23 Jun 2000 04:00:00


Vadim,

_narrow() is a standard call, and doesn't tie you to a particular vendor.
_narrow() is generated for all interfaces by the IDL compiler, and is a
compliant way to handle this (though using stringified IORs is a little
inconvenient...).

This will all work when JDK 1.3 supports the interoperable naming service.
When that will be, I have no idea.  It depends on how motivated Sun is to
fix it.  They're not exactly on the cutting edge (is the idl to java
compiler out of beta where it's been for about 2 years?) so I wouldn't
anticipate it too hotly.  There are plenty of other ORBs (Orbix 2000 for
Java, Orbacus 4.0.1 for Java, Visibroker 4.0 for Java) which support the INS
and will work with Orbix 2000 without the stringified IOR stuff.  Depends on
whether you're writing a production app or not.  If you are, you might want
to consider something besides the JDK ORB.

-B


> Bill, lots of thanks. You got me going...
> However, the fact that jdk1.3 does not support IONS is most
> frustrating. Is there any info on why and when such support would be
> provided. I don't want to reply on IORs. In addition, I have to use
> IONA's _narrow() implementation which ties me to IONA on the client
> side and I want to avoid that also.

> Thanks again,

> vadim



> > JDK 1.3 does not support the interoperable naming service.  Take the
> IOR of
> > IONA's NS (it's in the config file) and hardcode it into your client,
> and
> > then _narrow() it.  So long as you don't uninstall Orbix 2000, the
> IOR won't
> > change.

> > -B



> > > Folks,

> > > I am trying to get a simple HelloWorld app.
> > > working using C++/CORBA server running in
> > > Orbix2000 ORB on Solaris and Java (jdk1.3) client
> > > running in NT.
> > > resolve_initial_references("NameService") throws
> > > OBJECT_NOT_EXIST exception. Is there anything
> > > that I need to run on the client side? BTW,
> > > list_initial_services() also throws the same
> > > exception. So, what object is supposed to exist
> > > and where?

> > > bellow is the java code snippet.

> > > thanks,

> > > vadim

> > > Properties props = new Properties();
> > > props.put("org.omg.CORBA.ORBInitialPort", "4700");
> > > props.put
> > > ("org.omg.CORBA.ORBInitialHost", "192.168.100.36")
> > > ;
> > > ORB orb = ORB.init(args, props);
> > > org.omg.CORBA.Object obj =
> > > orb.resolve_initial_references("NameService");

> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

Java/CORBA Client & C++/CORBA server

Post by Michi Hennin » Sat, 24 Jun 2000 04:00:00



> This will all work when JDK 1.3 supports the interoperable naming service.
> When that will be, I have no idea.  It depends on how motivated Sun is to
> fix it.  They're not exactly on the cutting edge (is the idl to java
> compiler out of beta where it's been for about 2 years?) so I wouldn't
> anticipate it too hotly.

I'd say they are quite motivated to fix it. At the Oslo meeting, Sun
asked for approval to bundle the INS functionality into the next version
of the JDK (and got that approval of course). So, as far as the standards
process is concerned, all the obstacles are out of the way...

                                                        Cheers,

                                                                Michi.
--
Michi Henning               +61 7 3891 5744
Object Oriented Concepts    +61 4 1118 2700 (mobile)
Suite 4, 904 Stanley St     +61 7 3891 5009 (fax)

AUSTRALIA                   http://www.ooc.com.au/staff/michi-henning.html

 
 
 

1. C++ client talking to java server with corba

I had created a common idl file
for both the java server and C++ client.

java client can talk to a java server with corba
by jdk 1.4 idlj and orbd.
e.g.
orbd -ORBInitialPort 1050 -ORBInitialHost localhost&
java HelloServer -ORBInitialPort 1050 -ORBInitialHost localhost&
java HelloClient -ORBInitialPort 1050 -ORBInitialHost localhost

C++ client can talk to a C++ server with corba by ACE.
cd $TAO_ROOT/tests/Hello
server -o test.ior
client -k file://test.ior

Now how to integrate of C++ with java.
How to make C++ client talking to java server?
I don't know how to specify the port for the C++ server.

2. How to create and activate menu items dynamically ???

3. Pointers required on how to connecting java corba server from C++ client

4. What video card to use?

5. Connecting java corba server from C++ client

6. V/FS: Indigo2 R10K Impact/3D Glasses - Germany

7. Exception: CORBA.NO_IMPLEMENT when integrating C++ TAO server with Java JacORB client

8. Question : Corba: C++ Server and Java Client

9. Book: Client/Server Prog. w/ Java & CORBA

10. LONDON - Senior CORBA Architect - Front Office Trading - CORBA/C++/Java