[jboss-user] [JBoss Messaging] - session.createTextMessage() returns null?

AdrianWoodhead do-not-reply at jboss.com
Wed Jul 15 10:21:19 EDT 2009


I've noticed some strange behaviour in JBM 2.0.0.BETA3. We have a client application which queues up messages and sends them periodically to a topic. Sometimes the client gets into a strange state where:

message = session.createTextMessage();

returns null. I've never seen this happen before. The strange thing is that it doesn't happen on every call to createTextMessage. It will work for a few calls, then return null, then work again for a few more etc. It also doesn't happen all the time, our other client application running the same code at the same time does not exhibit this behaviour. In what cases would this method return null? The spec says nothing about this other than that a JMSException should be throw if an error occurs creating the message.

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

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



More information about the jboss-user mailing list