users@glassfish.java.net

Re: Dropped connections when using glassfish with activemq

From: Jagadish Prasath Ramu <Jagadish.Ramu_at_Sun.COM>
Date: Tue, 03 Jun 2008 14:05:06 +0530

There seems to be error while enlisting the resource (connection) with
the current transaction.
Can you set the log-level to FINEST for the log modules
"resource-adapter", "connector" and "jms" and post the log ?

Thanks,
-Jagadish


On Mon, 2008-06-02 at 23:33 -0700, davood wrote:
> Hi,
>
> I'm trying to use activemq with gassfish as messaging layer. The reason I
> want to use activemq is that I have a c# client too and AFAIK opemmq doesn't
> support .net clients. Any way I was able to set it up and use it using
> generic resource adapter. I'm sending and receiving small files (normally
> smaller than 1 meg). As soon as there is small load on jms (say 5-10
> messages containing small files) I face with dropped connections, As far as
> I see there is no memory problem. This is the exception I'm getting in
> glassfish.
>
>
> |Error in allocating a connection. Cause: javax.transaction.SystemException
> javax.resource.spi.ResourceAllocationException: Error in allocating a
> connection. Cause: javax.transaction.SystemException
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:353)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> at
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> at
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
> .
> .
> .
> .
> .
> Caused by: com.sun.enterprise.resource.PoolingException:
> javax.transaction.SystemException
> at
> com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:225)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> ... 56 more
>
>
> Please note that Activemq is up and running and c# client can access it
> correctly. I have this problem with glassfish v2, v2ur1 and v2ur2 though it
> seems v2ur2 is a little better.
>
> Thanks.