CORBA instead of JNI?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kothapalli_Choudary
Posted On:   Saturday, June 2, 2001 01:22 AM

Hi all, Currently I'm able to do this using Orbix2000 on WinNT. 1.Run a C++ server 2.And talk to it from a Java client (both on same PC) I'm using hardcoded IOR strings. That's OK for now. But, I'm starting 2 instances of ORBs one for C++ and one for Java. I think it should be possible to do the same with a single ORB instance; am I right there? I don't need any remote communication. I just want a way to avoid JNI. It's amazing that I find little on this after searching the web for a day. Is it such a stupid idea in the first place? May be in terms of usage of resources, but if you don't bother about it, we should be able to do it, right?    More>>

Hi all,

Currently I'm able to do this using Orbix2000 on WinNT.

1.Run a C++ server
2.And talk to it from a Java client (both on same PC)
I'm using hardcoded IOR strings. That's OK for now.

But, I'm starting 2 instances of ORBs one for C++ and one
for Java. I think it should be possible to do the same with
a single ORB instance; am I right there? I don't need any
remote communication. I just want a way to avoid JNI.

It's amazing that I find little on this after searching the web
for a day. Is it such a stupid idea in the first place?
May be in terms of usage of resources, but if you don't
bother about it, we should be able to do it, right?

Regards,
Choudary.

   <<Less

Re: CORBA instead of JNI?(with answer and another question)

Posted By:   Kothapalli_Choudary  
Posted On:   Monday, June 4, 2001 01:43 AM

Hi all,

If I wasn't clear earlier, here is my original problem...



I implement a server in C++ and register it with POA. Then I implement

another server in Java and want to register it with the same POA. POA is a

sort of daemon process listening for client requests, right? I think it

should be sort of a RMI registry with a specific local/remote interface to bind

and unbind objects.

But the code samples I see with Orbix2000 typically do this...

1.ORB.init()

2.Resolve initial references to get POA.

3.Connect/activate the server object
with the POA.
4.Start ORB.


My problem is if I do those things once in C++ and once in Java am I starting

two POA daemon processes, which is an unnecessary overhead?



The answers seems to be no. Orbix guide says 'All server processes in a

location domain use the same root POA, which you obtain by calling

resolve_initial_references("POA")'.


Now I've another doubt. Why didn't they make POA also a service like Naming

service, which is started separately? Or some ORBs do so? Or something is

wrong with my understanding?


Thanks and regards,
Choudary.

About | Sitemap | Contact