I trie it with the following lines of code. I identifie the specific message and get the message-id. Then I create a QueueReceiver to consume this message. But I get still "null" message. Dos anyone see an error? The message is within the queue, definitly. Also the JMX Bean of the queue listens the message.
InitialContext initialContext = new InitialContext(connProps); mqFactory = (QueueConnectionFactory) initialContext.lookup("ConnectionFactory"); Queue wfQueue = (Queue) initialContext.lookup("queue/my-queue"); QueueConnection qConn = mqFactory.createQueueConnection(); QueueSession qSession = (QueueSession)qConn.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); QueueReceiver qRec = qSession.createReceiver(wfQueue, "JMSMessageID like \'%14-10898887709371%\'"); Message m = (Message)qRec.receive(3000); qRec.close(); qSession.close(); qConn.close(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842199#3842199 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842199 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user