users@glassfish.java.net

Re: @Resource not working for custom-resource

From: <forums_at_java.net>
Date: Wed, 4 Jan 2012 22:42:48 -0600 (CST)

Can you try @Resource(lookup="fileloc"), or @Resource(mappedName="fileloc")?

lookup("fileloc") should work.  Can you post the stacktrace?  Could be
caused by some special characters in your value like : \

-Cheng


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