Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 C421241A9 for ; Sat, 4 Jun 2011 02:40:42 +0000 (UTC) Received: (qmail 19427 invoked by uid 500); 4 Jun 2011 02:40:42 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 19294 invoked by uid 500); 4 Jun 2011 02:40:42 -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 19286 invoked by uid 99); 4 Jun 2011 02:40:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 02:40:42 +0000 X-ASF-Spam-Status: No, hits=4.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RFC_ABUSE_POST,SPF_SOFTFAIL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of cspine33@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 02:40:37 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QSgmf-00071I-Js for users@activemq.apache.org; Fri, 03 Jun 2011 19:40:17 -0700 Date: Fri, 3 Jun 2011 19:40:17 -0700 (PDT) From: korg To: users@activemq.apache.org Message-ID: <1307155217606-3572630.post@n4.nabble.com> Subject: Unable to persist messages in DB when activeMQ embedded in JBoss 5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I try to use ActiveMQ 5.5.0 embedded in JBoss. Everything works fine except for the persistence. I followed all the steps described http://ttlnews.blogspot.com/2010/10/jboss-4551-and-activemq-54-integration.html here and messages are sent to the queue, I can consume them, but they're never persisted in my DB. I assume the DB config is OK since when I start JBoss, tables within my specified schema are created (but never populated). Here are my configs: First, I deployed activemq-ra.rar directory in the deploy folder of my JBoss instance. Within this directory, I have the following broker-config.xml: In the jboss deploy folder, I added a new file called tm-activemq-ds.xml, in which I create the queues I need. The file contents the following config: <!DOCTYPE connection-factories PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> activemq/QueueConnectionFactory activemq-ra.rar javax.jms.QueueConnectionFactory vm://localhost 1 200 30000 3 activemq/TopicConnectionFactory activemq-ra.rar javax.jms.TopicConnectionFactory vm://localhost 1 200 30000 3 /queue/DATA_EXPORT_REQUEST_HANDLER_QUEUE jboss.jca:service=RARDeployment,name='activemq-ra.rar' javax.jms.Queue PhysicalName=queue.DATA_EXPORT_REQUEST_HANDLER_QUEUE /queue/DATA_NOTIFY_REQUEST_HANDLER_QUEUE jboss.jca:service=RARDeployment,name='activemq-ra.rar' javax.jms.Queue PhysicalName=queue.DATA_NOTIFY_REQUEST_HANDLER_QUEUE /queue/MFX_EXPORT_SYNCHRONIZATION_QUEUE_WEB jboss.jca:service=RARDeployment,name='activemq-ra.rar' javax.jms.Queue PhysicalName=queue.MFX_EXPORT_SYNCHRONIZATION_QUEUE_WEB /queue/MFX_EXPORT_SYNCHRONIZATION_QUEUE_CRM jboss.jca:service=RARDeployment,name='activemq-ra.rar' javax.jms.Queue PhysicalName=queue.MFX_EXPORT_SYNCHRONIZATION_QUEUE_CRM When I try the same config in a standalone activeMQ and I check the "persistent delivery" option from the activeMQ admin portal, messages are inserted in the DB. Am I missing something in JBoss? Do I need to add policies or any special configurations? I also tried to used journal files as my persistence adapter, but again, when I shut down JBoss and I start it back, I never retrieve my "supposed to be persisted" messages. Thx a lot for your help, I'm really desperate, I need to benchmark activeMQ in JBoss to prove that JBossMessaging s*cks but right now, I cant compare the same scenario. PL -- View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-persist-messages-in-DB-when-activeMQ-embedded-in-JBoss-5-1-tp3572630p3572630.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.