I do that right now with no problems yet.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of KirkYarina
> Sent: Wednesday, October 11, 2000 1:21 PM
> To: Orion-Interest
> Subject: Home interfaces and stateless session beans
>
>
> Sorry for the newbie question...
>
> In the business methods in my stateless session beans I've always done what
> seems like the usual pattern - lookup and narrow entity bean home
> interfaces in the method that uses them. However, to save some time, I'd
> like to do these lookups in the SLSB's ejbCreate method and save them in
> instance variables.
>
> I've rtfm, along with RMH, and can't see a reason why this wouldn't work,
> both with Orion and portably. Have I missed something?
>
> Better yet, can these be put into a class field and only looked once,
> rather than every bean instance. For example
>
> private static BeanHome beanhome = null;
> ...
> ejbCreate()
> {
> ...
> if(beanhome == null)
> {
> beanhome = (lookup/narrow beanhome... )
> }
> ...
> }
>
>
> Thanks!
>
> Kirk Yarina
> [EMAIL PROTECTED]
>
>
>