> >>> Is it valid to just use the EJBs objects from the
> servlet?
> >> Yes it should.
For stateless session bean references it's fine. For stateful
session beans it's better to store them in the HttpSession as
they're not intended for concurrent access.
> > I'll try. Although I guess the safest way to do it
> is to do a JNDI look up each time the onEvent Method
> is called (that's where I need the EJBs).
>
> Is the JNDI lookup performance good? Long time I
> played with such call,
> but if they cost nothing, then I agree this is the
> way to go.
If the target bean lives in the same JVM the cost is minimal.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=287719