>Hello,
>
[quoted text clipped - 18 lines]
>
>Sascha Effert
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
Sascha Effert - 15 Oct 2007 10:03 GMT
> In the past, I had a static member of a SLSB and initialized it if null.
> This may not be the best way now.
[quoted text clipped - 16 lines]
>
> 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