users@glassfish.java.net

Re: _at_Resource Dependency Injection: Resource won't inject

From: <glassfish_at_javadesktop.org>
Date: Thu, 31 Jan 2008 19:16:59 PST

You can use the plain old web.xml + JNDI lookup. You declare a <resource-ref> in web.xml, and look it up in your JavaBeans class. This is equivalent to @Resource injection.

You can also implement it in a servelt class, or a tag handler class where @Resource injections are supported.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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