ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » WAS V 7.0.0.15 JMS client recieve null message without erros

Post new topic  Reply to topic
 WAS V 7.0.0.15 JMS client recieve null message without erros « View previous topic :: View next topic » 
Author Message
sushantbpawar
PostPosted: Fri Apr 01, 2011 8:46 am    Post subject: WAS V 7.0.0.15 JMS client recieve null message without erros Reply with quote

Newbie

Joined: 01 Apr 2011
Posts: 2

HI ,

I am facing issue while recieving the message from MQ Server V6.1.

ON WAS 7.0.0.15 I have EJB in which we invoke JMS send/recive with the Correlation ID and recieve.

I have confiquered the Queue connection factory on WAS 7.00.15 and SPRING JMS template used the same setting for connection.

Send and recieve operation happens in different EJB methods whose transaction attribute is requires new.

Message is posted sucessfully and commited to the MQ.

However i am not able to retrieve the message.

Following is the code for sending using spring jms template

jmsTemplate102.send("jms/CIREQUESTQ", new MessageCreator() {

public Message createMessage(Session session) throws JMSException {
Message m=session.createTextMessage("This is a sample message");

String coRelationID="1234";
String _selector = "JMSCorrelationID ='" + coRelationID + "'";
m.setJMSCorrelationID(_selector);
return m;
}
});


Message posted succesfully to QUEUE with corelationID as '1234' after excecution of send method in EJB

Code for recieve on excecution of recieve method --

String coRelationID="1234";
String _selector = "JMSCorrelationID ='" + coRelationID + "'";
//String _selector = "JMSCorrelationID = '" + "1234" + "'";
Message msg =jmsTemplate102.receiveSelected("jms/CIREQUESTQ", _selector);
//Message msg =jmsTemplate.receive("jms/CIREQUESTQ");
//jmsTemplate102.r
try{
TextMessage textMessage = (TextMessage) msg;
if( msg!=null){
System.out.println(" Message Received -->" + textMessage.getText());
}


}catch(Exception e){
e.printStackTrace();
}

Can any one please help me on this issue?

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » WAS V 7.0.0.15 JMS client recieve null message without erros
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.