users@glassfish.java.net

Re: @Resource not working for custom-resource

From: <forums_at_java.net>
Date: Thu, 5 Jan 2012 07:28:27 -0600 (CST)

Change the prop name to "value".  @Resource and lookup() should work.  If
you want arbitary property name, you need to use JavaBeanFactory or your own
object factory class.  If the problem persists, please attach a test.

http://docs.oracle.com/cd/E18930_01/html/821-2418/beanx.html

-Cheng


--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/880055