[ 
https://issues.apache.org/jira/browse/AMQ-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485516#comment-13485516
 ] 

kalyan chakravarthi commented on AMQ-4139:
------------------------------------------

Hi,

 Below is the scenario.
1. I have activemq broker(5.7.0) embedded in jboss 4.2.
2. Spring Default Message Listener container(DMLC) is used for consuming 
messages.
3. Redelivery is configured on the broker side with a redelivery delay of 2 
minutes(120000ms) for 4 maximum redelivery attempts.
4.JMS transaction manager is configured in the spring DMLC.

Below are the steps:
1. Create a message and send to the Queue1.
2. Spring DMLC will consume message and produces another message to queue2.


   When the above scenario is tested with one message it works correct. But 
when the load test is done with the above scenario. it causes the exception 
Producer is closed. The above scenario works well in the activemq 5.4.2 
version. The reason for upgrade to 5.7.0 is the broker redelivery.

 Please let me know if any more details are needed.
 
                
> Producer closed and session closed exception after upgrading to activemq 
> version 5.7
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-4139
>                 URL: https://issues.apache.org/jira/browse/AMQ-4139
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: kalyan chakravarthi
>
> Hi,
>   I have recently updated to Active MQ version 5.7 from 5.4.2, to take the 
> advantage of broker redelivery. Once i have upgraded, i am facing the below 
> exception.
> Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
>       at 
> org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
>       at 
> org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
>       at 
> org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
> Exception2 :
> javax.jms.IllegalStateException: The Session is closed
>       at 
> org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
>       at 
> org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to