From users-return-21449-apmail-tomee-users-archive=tomee.apache.org@tomee.apache.org Fri Sep 4 12:50:20 2015 Return-Path: X-Original-To: apmail-tomee-users-archive@www.apache.org Delivered-To: apmail-tomee-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFF5A17C0D for ; Fri, 4 Sep 2015 12:50:20 +0000 (UTC) Received: (qmail 72773 invoked by uid 500); 4 Sep 2015 12:50:20 -0000 Delivered-To: apmail-tomee-users-archive@tomee.apache.org Received: (qmail 72745 invoked by uid 500); 4 Sep 2015 12:50:20 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Delivered-To: moderator for users@tomee.apache.org Received: (qmail 4376 invoked by uid 99); 4 Sep 2015 12:14:18 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.314 X-Spam-Level: ** X-Spam-Status: No, score=2.314 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Date: Fri, 4 Sep 2015 05:08:04 -0700 (PDT) From: msdocware To: users@tomee.apache.org Message-ID: <1441368484632-4676115.post@n4.nabble.com> In-Reply-To: References: <152788E11383FD43B08703624C7B9E6B1D49973B84@S-EXCHG> <1441175673567-4676056.post@n4.nabble.com> <1441200629642-4676060.post@n4.nabble.com> <1441263192454-4676073.post@n4.nabble.com> Subject: Re: Using JMS with Resource annotation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit After reading this https://docs.oracle.com/javaee/6/tutorial/doc/bnaeo.html, I now have a better understanding what is possible in web components. It's stated there that resource injections by annotations should work in Servlets. For simplicity I had done my tests in a JSP. And that was the problem. Once I put my code into a servlet, Websphere during deployment recognized the resource requirements and offered the mapping to the available resources. Testing worked. Now I am much further. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Using-JMS-with-Resource-annotation-tp4676042p4676115.html Sent from the TomEE Users mailing list archive at Nabble.com.