Two cases:

 1. You want to have a service manager within one servlet.

 2. You want to share a service manager among servlets.

Case 1: Have one big servlet that has the service manager.

Case 2: Using JBoss, I either:

 a) Bind the configuration for a service manager as a Serializable
object
    in the JNDI tree

or

 b) Bind the service manager itself as a non-serializable object in the
    JNDI tree.

(a) requres that *something* creates the configuration objects and (b)
still 
requires that *something* creates the service manager instance. I use an
MBean for that.

/LS

> -----Original Message-----
> From: Glenn R. Golden [mailto:[EMAIL PROTECTED] 
> Sent: den 26 september 2003 19:39
> To: Avalon framework users
> Subject: Re: Framework / non-Framework question
> 
> 
> I'm not very familiar with this - can you tell me more, specifically, 
> how you use JNDI to find Avalon service manager or components?
> 
> Thanks.
> 
> - Glenn
> 
> On Friday, September 26, 2003, at 12:59  PM, Leo Sutic wrote:
> 
> >> From: Glenn R. Golden [mailto:[EMAIL PROTECTED]
> >>
> >> But I wonder if this has already been addressed by the Avalon 
> >> community, and if so, if there's a more elegant solution.
> >
> > I use JNDI for that purpose.
> >
> > /LS
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to