Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 2710 invoked from network); 14 Oct 2010 14:34:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 14:34:26 -0000 Received: (qmail 17444 invoked by uid 500); 14 Oct 2010 14:34:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 17188 invoked by uid 500); 14 Oct 2010 14:34:23 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 17177 invoked by uid 99); 14 Oct 2010 14:34:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 14:34:22 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 14:34:15 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P6OsT-0005bn-Jo for users@activemq.apache.org; Thu, 14 Oct 2010 07:33:53 -0700 Date: Thu, 14 Oct 2010 07:33:53 -0700 (PDT) From: BenXS To: users@activemq.apache.org Message-ID: <1287066833608-2995419.post@n4.nabble.com> Subject: How to use a message driven bean on AppServer like JBoss/Tomcat (and not Messagebroker)? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Normally I can create a MessageDrivenBean *.jar and deploy it into the /lib sub-folder of ActiveMQ. It will be automatically managed when ActioveMQ starts and receives incoming message in its onMessage() method. Fine. But how can I use MessageDrivenBeans when I have/want to deploy them on a separate Application Server like JBoss or Tomcat ? Lets assume the AS is started with the deploy MDB. The MDB connects to ActiveMQ by establishing a connection. Does this connection setup also automatically create a listener on ActiveMQ? In other words: If a new incoming message appears in queue "myqueue123" does ActiveMQ automatically know that there is a listener with a MDB which needs to be invoked on an external application server? This whole mechanism must be (from the ActiveMQ point of view) a push operation and NOT a pull operation from the appserver/mdb side! Ben -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-use-a-message-driven-bean-on-AppServer-like-JBoss-Tomcat-and-not-Messagebroker-tp2995419p2995419.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.