I know this is a DEBUG log entry and I'm tempted to igonre it (and filter it
from the log).
I would, however, like to know more about this "error"...
Thanks
Dag
code use to send the message
| public void jmsSend (TextMessage textMessage) throws JMSException
| {
| final String jmsErrorMsg = "Could not send JMS message";
|
| boolean error = true;
|
| QueueConnection connection = null;
| QueueSession session = null;
| Queue queue = null;
| QueueSender queueSender = null;
| try {
| connection = createConnection();
| session = createSession(connection);
| queue = createQueue();
|
| queueSender = session.createSender(queue);
| queueSender.send(textMessage);
|
| error = false;
| } catch (JMSException e) {
| logger.error(jmsErrorMsg + e);
| } catch (NamingException e) {
| logger.error(jmsErrorMsg + e);
| }
| finally
| {
| if (null != queueSender)
| {
| try
| {
| queueSender.close();
| }
| catch (JMSException e)
| {
| logger.error ("Could not close
queueSender");
| }
| }
| if (null != session)
| {
| try
| {
| session.close();
| }
| catch (JMSException e)
| {
| logger.error ("Could not close
session");
| }
| }
| if (null != connection)
| {
| try
| {
| connection.close();
| }
| catch (JMSException e)
| {
| logger.error ("Could not close
connection");
| }
| }
|
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954694#3954694
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954694
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user