users@glassfish.java.net

appclient issue/misunderstanding

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Mar 2007 13:53:28 PST

I am having a problem using the command line appclient container to run my client. I don't know if it is a bug or a misunderstanding on my part, but either way I think there is room for improvement.

My client consists of several classes. I am trying to inject JMS resources. I noticed that if I put the @Resource annotation in the class with the main method it gets filled in by the client container, but if I put it in a class that gets called by the class with the main method then it doesn't (it is null). Is this an intentional limitation? It seems like this limitation makes annotation use virtually impossible for all but the simplest clients.
[Message sent by forum member 'sarnoth' (sarnoth)]

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