users@glassfish.java.net

Re: How to set up for String _at_Resource

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Dec 2008 13:05:12 PST

Hi Peter,

You need to add an env-entry to your web.xml. The easiest thing is
to add a name() attribute to @Resource. Then use that same name
as the env-entry-name.

<env-entry>
<description>description</description>
<env-entry-name>someString</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>foobar</env-entry-value>
</env-entry>
[Message sent by forum member 'ksak' (ksak)]

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