[ 
https://issues.apache.org/jira/browse/AMQ-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy Bish closed AMQ-4928.
-----------------------------

    Resolution: Incomplete

No unit test provided to reproduce, missing client connection URI and broker or 
client logs. 

> The producer is closed 
> -----------------------
>
>                 Key: AMQ-4928
>                 URL: https://issues.apache.org/jira/browse/AMQ-4928
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: activemq-pool
>    Affects Versions: 5.9.0
>            Reporter: Michael Wittig
>              Labels: pool, producer
>
> We see "The producer is closed exceptions" often after the system was in idle 
> mode for a few days/hours (weekend) and then the first requests of monday 
> start to arrive at the system. I am a bit confused because I thought that 
> producers are not pooled. Only connections and sessions are pooled?
> The spring config of the connection factory looks like this:
> {quote}
> <bean id="jmsFactory" 
> class="org.apache.activemq.pool.PooledConnectionFactory" 
> destroy-method="stop">
>               <property name="connectionFactory">
>                       <ref local="jmsConnectionFactory" />
>               </property>
>               <property name="createConnectionOnStartup" value="true" />
>               <property name="idleTimeout" value="0" />
>               <property name="maxConnections" value="3" />
>               <property name="maximumActiveSessionPerConnection" value="100" 
> />
>               <property name="timeBetweenExpirationCheckMillis" value="30000" 
> />
>               <property name="blockIfSessionPoolIsFull" value="false" />
>       </bean>
> {quote}
> The exception:
> {quote}
> Caused by: javax.jms.IllegalStateException: The producer is closed
> at 
> org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:196)
> at 
> org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
> at org.apache.activemq.jms.pool.PooledProducer.<init>(PooledProducer.java:42)
> at 
> org.apache.activemq.jms.pool.PooledSession.createProducer(PooledSession.java:359)
> at 
> org.springframework.jms.core.JmsTemplate.doCreateProducer(JmsTemplate.java:971)
> at 
> org.springframework.jms.core.JmsTemplate.createProducer(JmsTemplate.java:952)
> at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:563)
> at org.springframework.jms.core.JmsTemplate$3.doInJms(JmsTemplate.java:536)
> at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)
> ... 16 more
> {quote}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to