Um, actually, all that paragraph states (in a very indirect way) is that the
thread executing main() needs to be held alive in order to keep the
application containing the Hello servant alive, so that the POA can fire
requests to the servant object as they come in. It really doesn't answer the
question in the slightest.
I'm not a CORBA expert, but I believe the OMG specs state that a CORBA call
can come in on any thread, so you must assume complete nondeterministic
behavior--synchronize anywhere shared resources are being referenced. This
is the same policy as is required by RMI, so any RMI book that talks about
synchronization (which is precious few of them) would be of a help here.
Ted Neward
{.NET || Java} Course Author & Instructor, DevelopMentor
(http://www.develop.com)
http://www.javageeks.com/tneward
----- Original Message -----
From: "Zahid Rahman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2002 1:10 PM
Subject: Re: [EJB-INT] ORB
> try this link.
> http://java.sun.com/docs/books/tutorial/idl/hello/server.html
>
> the paragraph of interest to you is :-
>
> Waiting for Invocation
>
> The server is ready; it simply needs to wait around for a client to
> request its service. To achieve that, enter the following code at the end
of
> (but within) the try-catch block:
>
> java.lang.Object sync = new java.lang.Object();
> synchronized(sync) {
> sync.wait();
> }
>
> This form of Object.wait requires HelloServer to remain alive (though
> quiescent) until an invocation comes from the ORB. Because of its
placement
> in main, after an invocation completes and sayHello returns, the server
will
> wait again.
>
> ----- Original Message -----
> From: "Daniel Legziel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, January 13, 2002 8:12 PM
> Subject: ORB
>
>
> > Hi guys,
> >
> > Can anyone tell me how the ORB in CORBA treats concurrent requests from
> client(s) to server(s) and vice versa? Is there a queuing dynamic that
> treats them in a FIFO manner?
> >
> > Any insight would be highly appreciated,
> > Daniel
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".