-
1. Re: some warning message when use the HornetQ
xin.zhang.song Sep 28, 2012 2:02 AM (in response to xin.zhang.song)Is there somebody have any idea for this?
-
2. Re: some warning message when use the HornetQ
nickarls Sep 28, 2012 2:03 AM (in response to xin.zhang.song)I would start by looking at application code cleanup (how you aquire/close sessions, do you have finally block etc?)
-
3. Re: some warning message when use the HornetQ
xin.zhang.song Sep 28, 2012 2:06 AM (in response to nickarls)yes, I wrote the code about close JMS connection in the finally block.
-
4. Re: some warning message when use the HornetQ
jaikiran Sep 28, 2012 2:10 AM (in response to xin.zhang.song)Please post the code which is opening/closing that session. The log suggests it is this:
at com.broadvision.data.message.MsgSessionMgr.openJMSConnection
-
5. Re: some warning message when use the HornetQ
xin.zhang.song Sep 28, 2012 2:19 AM (in response to jaikiran)This is part of this file :
public void openJMSConnection(String topicFactJndi)
throws DataException
{
final String func = "openJMSConnection";
//
// set value of topic jndi to be used on exception
//
mTopicJndi = topicFactJndi;
String msg = null;
try {
ServiceAgent agent = ServiceAgent.getInstance();
agent.flushCachedResources();
TopicConnectionFactory tFac= (TopicConnectionFactory)
agent.getBVAppServerResource(topicFactJndi,
ResourceType.RESTYPE_JMS_TOPIC_CONNECTION_FACTORY,
TopicConnectionFactory.class);
if (mTopicConn == null)
// the line that post the error message
mTopicConn = tFac.createTopicConnection();
//DataLog.debug(this.getClass(), "TopicConnection is created");
// must set exception listener for Jboss
if (mPlatform.equalsIgnoreCase(AbstractPlatform.JBOSS_PLATFORM_SIGNATURE))
mTopicConn.setExceptionListener(new ExceptionListenerImpl());
String jmsId = mTopicConn.getClientID();
DataLog.info(this.getClass(), func, Data_ErrorsDefine.AS_IS_MESSAGE,
"topic connection opened id = " + jmsId + " topic="+ topicFactJndi);
and I wrote a method to close the jms connection:
public void closeJMSConnection()
throws DataException
{
// close subscriber
cleanDurableSubscriber();
mSsnMgr.closeJMSConnection(true);
// clean up the cached objects
mSubscribers.clear();
mMsgContexts.clear();
}
-
6. Re: some warning message when use the HornetQ
xin.zhang.song Sep 28, 2012 2:27 AM (in response to xin.zhang.song)Have any idea for this?
-
7. Re: some warning message when use the HornetQ
nickarls Sep 28, 2012 2:35 AM (in response to xin.zhang.song)If you place some debug output right before the line that *really* does the closing, do you see it? (In case you exit before that)