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 3 of 3 Topic 506 of 538
Post > Topic >>

Re: Help rqd with OrbixWeb and OrbCurrent please

by apm35@[EMAIL PROTECTED] Aug 21, 2007 at 12:25 AM

Mark Woyna wrote:
> On Aug 20, 6:10 am, ap...@[EMAIL PROTECTED]
 wrote:

I found out what was wrong. The code below:

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

only works if you say:

            java.util.Properties props = new java.util.Properties();
            props.setProperty("OrbixWeb.IT_MULTI_THREADED_SERVER",
"true");

            ORB orb = _OrbixWeb.ORB(ORB.init(args, props));

when you initialise the ORB.

> > 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.

It was returning the wrong value due to a race condition. The ORB init
code code above has to be used according to the IONA KnowledgeBase
article at
https://www.iona.com/sup****t/kb/entry!default.jspa?categoryID=3&externalID=1933.942&fromSearchPage=true

> Since you're rewriting the application in Java, do you have to stick
> with OrbixWeb?

Yes. I wish it was not so.

> You'd probably get a lot more help/sup****t if you used
> JacORB, which has a much larger active community than OrbixWeb.

Agreed. That is why when I first started the development I did use
JacORB. It enabled me to get most of the development done without
having to worry about setting up a commercial installation, checking
that I had got licences, putting in a purchase order then waiting
three months etc etc.

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 Sat Jul 5 15:19:39 CDT 2008.