users@glassfish.java.net

Using EJBs in CometHandler (GlassFish 2 UR2)

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jul 2008 12:42:11 PDT

What's the prefered way to call EJBs in a CometHandler? EJBs can be injected in servlets, but I do not know a way to inject them in CometHandler objects.

Is it valid to just use the EJBs objects from the servlet? There may be problems because the CometHandler's life cycle is independent from the servlet. So doing a JNDI look up it probably the more robust approach (though it's less convenient)?

Injection in CometHandler would be nice...
[Message sent by forum member 'markusoj' (markusoj)]

http://forums.java.net/jive/thread.jspa?messageID=287123