can you not use a stateful session bean and initialise each instance, using
ejbCreate ?
or is there some reason why you can't use a stateful bean??
----- Original Message -----
From: "Neal Kaiser" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 1:25 AM
Subject: Stateless Session Bean Initialization Pattern
> Hi. I have a framework as follows:
>
> A startup servlet reads in an XML file and creates a message bundle. This
> message bundle will be used by Servlets and EJBs to pull resources from
it.
>
> I somehow need a way to initialize the stateless session bean by passing
the
> message bundle to it. When the startup servlet starts, I get a reference
to
> the session bean and call init(MessageBundle).
>
> However, this does not work because other instances of the session bean
will
> not be initialized. I need some sort of static variable, or environment,
or
> some way I can get the original MessageBundle passed in from the startup
> servlet.
>
> Any suggestions on how I should handle this? I suppose one solution
would
> be to use JNDI and store the object in there. Are there any Orion
examples
> of how to do this?
>
>
>