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: Event dispa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 517 of 543
Post > Topic >>

Re: Event dispatch in OrbixWeb: single threaded or multi-threaded?

by apm35@[EMAIL PROTECTED] Nov 28, 2007 at 04:32 AM

On 27 Nov, 21:49, Yakov Gerlovin <yakov.gerlo...@[EMAIL PROTECTED]
> wrote:
> > I have just found a nasty race condition in my java servant which can
> > only be explained if the CORBA event dispatching in OrbixWeb occurs
> > using multiple threads.
>
> That is according the standard unless the servant is registered under
> single-threaded POA.
> The default threading policy for POA is multithreaded and in Orbix
> 2000 and Orbix 6.3 it is so. I never worked with OrbixWeb, but I see
> no reason to implement something against the standard.
> May be you should check the policies of the POA on which your servant
> is registered.

OrbixWeb 3.0.x is ancient and quite different to the other IONA
products. On page 408 of the OrbixWeb programmers guide in the section
titled "multithreaded servers" it says (and I quote):

Where parallism is not required, there is no need to make a server
multi-threaded.

The way I read this is that by default a server is single-threaded,
you have to write some extra code (e.g using thread filters) to make
it multi-threaded. I have discussed this with an IONA consultant, who
reads this the same way I do. But our OrbixWeb setup seems to
dispatching CORBA requests from more than one thread.

I am using the apache commons logger which re****ts the thread name in
each logging record. When I log the incoming CORBA request I see two
thread names, one is "main" which I expect since that is where my call
to processEvents is, the other is called "Request Processor". I don't
know where that thread comes from. It's not one of mine.

-Andrew M.
 




 5 Posts in Topic:
Event dispatch in OrbixWeb: single threaded or multi-threaded?
apm35@[EMAIL PROTECTED]   2007-11-27 05:36:09 
Re: Event dispatch in OrbixWeb: single threaded or multi-threade
Yakov Gerlovin <yakov.  2007-11-27 13:49:01 
Re: Event dispatch in OrbixWeb: single threaded or multi-threade
apm35@[EMAIL PROTECTED]   2007-11-28 04:32:45 
Re: Event dispatch in OrbixWeb: single threaded or multi-threade
Mark Woyna <woyna@[EMA  2007-11-28 08:12:08 
Re: Event dispatch in OrbixWeb: single threaded or multi-threade
apm35@[EMAIL PROTECTED]   2007-11-29 03:38: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 26 4:42:18 CDT 2008.