What about the QueueSession which is what the message is indicating that it closed? It could be argued that this is a bug in that 1.0.2b jms spec says that closing a connection is sufficient, but it was not addressing a JCA resource provider.

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

paul morgan wrote:

I just moved from 3.2.2RC1 to RC2 and am now receiving the following message (I've included the stack trace at the end):

10:51:25,608 INFO [CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: [EMAIL PROTECTED]

Has far as I can tell, I'm closing the connection. Following is a code snippet:

QueueConnection connection = null;

try {
connection = (this.getQueueConnectionFactory()).createQueueConnection();
QueueSession session = connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); MapMessage message = session.createMapMessage();


// The code to set the message.

            (session.createSender( this.getNotificationQueue() )).send( message );
        }
        catch( JMSException exception ) {
            throw new NotificationFailedException( "NotifierBean#forwardToNotifier -- 
" , exception );
        }
        finally {
            if (connection != (QueueConnection) null) {
                try {
                    connection.close();  connection = (QueueConnection) null;
                }
                catch( JMSException exception ) {
                    System.err.println( "NotifierBean#forwardToSMSNotifier -- " + 
exception );
                }
            }
        }

Anyone have any idea what I might be doing wrong (the normal case), or might this be a JBoss bug?

Thanks,

Paul

10:51:25,608 INFO  [CachedConnectionManager] Successfully closed a connection for you. 
 Please close them
yourself: [EMAIL PROTECTED]
java.lang.Exception: Stack Trace
        at 
org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:376)
        at 
org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:199)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:190)



------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to