Re: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1)

2003-08-01 Thread Scott M Stark
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.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

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/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1)

2003-08-01 Thread Danny . Yates
It would make sense if closing the connection closed all the sessions
created from that connection. After all, I guess the sessions are useless
once the connection has been closed?

Rgds,

Dan.

-- 
Danny Yates
 


-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED] 
Sent: 01 August 2003 07:33
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v.
3.2.2RC1)


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.

-- 

Scott Stark
Chief Technology Officer
JBoss Group, LLC


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(Cached
ConnectionManager.java:376)
 at
org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj
ect(CachedConnectionManager.java:199)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.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/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


_ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_ 




---
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/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user