I have the MDB with CMT. If I obtain the  native connections, I am getting the 
JBoss message:
09:59:18,505 INFO  [CachedConnectionManager] Closing a connection for you.  
Please close them yourself: [EMAIL PROTECTED]
java.lang.Exception: STACKTRACE
        at 
org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:321)
 etc....

The problem was isolated to the following few lines:
public void onMessage(Message message)
    {
        try {
            InitialContext initialContext = new InitialContext();
            DataSource dataSource = (DataSource) 
initialContext.lookup(ITM_DATA_SOURCE_REF);
            Connection wrappedConnection = (WrappedConnection) 
dataSource.getConnection();
            Connection connection = ((WrappedConnection) 
dataSource.getConnection()).getUnderlyingConnection();
            wrappedConnection.close();
        }
        catch (Exception e)
        {
            log.error("ERROR", e);
            throw new EJBException (e);
        }
    }

The mere fact of getting the native connection generates the message
I also can not close the native connection as it throws off the transaction 
manager.
Please help!!!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930152#3930152

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930152


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to