users@glassfish.java.net

Re: Environment entry not working / uses default always

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Apr 2008 06:48:16 PDT

Because the injection doesn't specify a name attr, and so the default kicks in. Try:

@Resource(name="mask")
private String mask = "/C'0'";

In absence of this name attr, the default is "<fully-qualified-class-name>/mask", which is not declared in your descriptor.

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

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