Hi all,

I just started to use Tomee and I really like the simplicity that it brings
to my app.

But I have an issue with ActiveMQ

I have set up the queue according to the docs at here:
http://activemq.apache.org/tomee.html

<tomee>
    <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
        BrokerXmlConfig =  broker:(tcp://someHostName:61616)
        ServerUrl       =  vm://localhost
    </Resource>

    <Resource id="MyJmsConnectionFactory" type="javax.jms.ConnectionFactory"
>
        ResourceAdapter = MyJmsResourceAdapter
    </Resource>
</tomee>

I can successfully send message to the queue and check with JConsole the
queue length.
But after sending a couple of messages the I receive an exception like this:
javax.jms.JMSException: No ManagedConnections available within configured
blocking timeout ( 5000 [ms] ) for pool
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor@6581542c
at
org.apache.activemq.ra.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:101)
at
org.apache.activemq.ra.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:67)

I first thought it might be an issue with JConsole blocking the queue or
something. But it also happen when there is no JConsole and I restart all
services from scratch.

There must be some connection pool config et cetera?

Where can I modify the Number of Connections that are pooled and handle
this more gracefully in Tomee?

Thanks for your help,

Sebastian

-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
[email protected]



-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
[email protected]

Reply via email to