[jboss-jira] [JBoss JIRA] (AS7-4203) Persistent messages sent to JMS destinations deployed via a war file do not recover after a crash

Jeff Mesnil (JIRA) jira-events at lists.jboss.org
Wed Mar 21 10:07:47 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678344#comment-12678344 ] 

Jeff Mesnil commented on AS7-4203:
----------------------------------

I checked and the AS7 code is configuring correctly the queue as durable.

I did a manual test:

* deploy the durable queue by putting the hornetq-jms.xml deployment file in the WEB-INF/
* send a message on the queue (without any tx)
* crash the server with a kill -9
* consume the message

and it worked as expected.

This simple test shows that the issue is likely related to the recovery process and not to the configuration of the queue. I continue to investigate.

                
> Persistent messages sent to JMS destinations deployed via a war file do not recover after a crash
> -------------------------------------------------------------------------------------------------
>
>                 Key: AS7-4203
>                 URL: https://issues.jboss.org/browse/AS7-4203
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 7.1.2.Final
>            Reporter: Michael Musgrove
>            Assignee: Jeff Mesnil
>
> I came across this issue whilst testing XA. The test case does a JPA update followed by JMS send inside a transaction. I allow both resources to prepare, I allow the JPA resource to commit but crash the AS (via Byteman) just before committing the JMS resource.
> If I define the queue in standalone-full.xml then the JMS message is delivered when recovery kicks in (ie after restarting the server). However, if I define the queue in the WEB-INF directory then the message is not recovered. The contents of hornetq-jms.xml that I ship with the war are:
> <?xml version="1.0" encoding="UTF-8"?>
> <messaging-deployment xmlns="urn:jboss:messaging-deployment:1.0">
>     <hornetq-server>
>         <jms-destinations>
>             <jms-queue name="jtaXaTestQueue">
>                 <entry name="queue/jtaXaTest"/>
>                 <entry name="java:jboss/exported/jms/queue/jtaXaTest"/>
>                 <durable>true</durable>
>             </jms-queue>
>         </jms-destinations>
>     </hornetq-server>
> </messaging-deployment>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list