Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > Help rqd with O...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 506 of 534
Post > Topic >>

Help rqd with OrbixWeb and OrbCurrent please

by apm35@[EMAIL PROTECTED] Aug 20, 2007 at 04:10 AM

I am working on a java rewrite of a C++ CORBA server using Orbix. I am
using OrbixWeb. Clients have the ability to register and deregister
themselves but not using the kind of IDL interface you would expect.
The IDL is legacy and cannot be changed. Instead of the register
method returning a token that is used in the deregister, a proprietary
extension of Orbix is used to identify the client. In the C++ version
of Orbix you can get the file descriptor for the underlying connection
to the client. In OrbixWeb you cannot (please correct me if I am wrong
about this). I tried to use the socket object instead with the code
below:

OrbCurrent orbCurrent = _OrbixWeb.Current();
Object socketRef = orbCurrent.get_socket();
Socket socket = (Socket)socketRef;

I then get the IP Address and port number from the socket and use
these as a form of client id. The trouble is, this does not always
work. Sometimes during testing when I have two clients I seem to get
getting the Socket object for the wrong client. It is as if
OrbixWeb.Current() sometimes returns the wrong value. Can anybody help
please?

Regards,

Andrew Marlow




 3 Posts in Topic:
Help rqd with OrbixWeb and OrbCurrent please
apm35@[EMAIL PROTECTED]   2007-08-20 04:10:39 
Re: Help rqd with OrbixWeb and OrbCurrent please
Mark Woyna <woyna@[EMA  2007-08-20 07:07:53 
Re: Help rqd with OrbixWeb and OrbCurrent please
apm35@[EMAIL PROTECTED]   2007-08-21 00:25:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:46:07 CDT 2008.