by Sascha Effert <fermat@[EMAIL PROTECTED]
>
Oct 15, 2007 at 11:03 AM
EricF wrote:
> In the past, I had a static member of a SLSB and initialized it if null.
> This may not be the best way now.
>
> Someling like:
>
> public class MyBean implements SessionBean {
> private static Hashtable data;
>
> private void init ejbCreate() {
> if (data == null)
> initdata();
> }
> ....
> }
>
> What you mightwant to look at is storing your data using JNDI and
populate
> it at the server startup. You shoul be able to inject it into your bean
if
> using EJB3.
>
> Eric
Hi,
its so easy... I thought it is not possible to use static fields in EJBs.
I
will try it.
thanks a lot
Sascha Effert