Talk About Network

Google


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 > Re: Help rqd wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 506 of 552
Post > Topic >>

Re: Help rqd with OrbixWeb and OrbCurrent please

by Mark Woyna <woyna@[EMAIL PROTECTED] > Aug 20, 2007 at 07:07 AM

On Aug 20, 6:10 am, ap...@[EMAIL PROTECTED]
 wrote:
> 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 ****t 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

Since you're rewriting the application in Java, do you have to stick
with OrbixWeb? You'd probably get a lot more help/sup****t if you used
JacORB, which has a much larger active community than OrbixWeb.

Can you post the IDL?

Mark
 




 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 Fri Oct 10 14:35:19 CDT 2008.