Results 1 to 1 of 1
Thread: jms message passing
- 09-15-2009, 07:33 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 32
- Rep Power
- 0
jms message passing
hi all i am trying to pass url, file path, id in message but in message consumer i am getting null pionter exception can you pls tell where i am wrong : message producer code:
getJmsTemplate().send(new MessageCreator(){
public Message createMessage(Session session)throws JMSException{
MapMessage msg=session.createMapMessage();
msg.setString(COMMAND, DELETE);
msg.setString(APP_URL, appUrl);
msg.setString(FILE,filePath);
msg.setString(MAILING_LIST_ID, mailingListId);
return msg;
}
});
values are passing from here to message consumer code where i am getting null pointer execption is :
subscriberService.deleteSubscribers(mapMessage.get String(FILE),mapMessage.getString(APP_URL),mapMess age.getString(MAILING_LIST_ID));
please tell me what mistake i am doing .
Similar Threads
-
Passing a value..
By Lagarto in forum New To JavaReplies: 3Last Post: 01-23-2011, 05:58 PM -
MVC passing objects
By simo_mon in forum New To JavaReplies: 1Last Post: 07-17-2009, 06:57 AM -
Passing Strings ?
By aldo1987 in forum New To JavaReplies: 17Last Post: 04-24-2009, 05:03 AM -
passing a parameter
By aarthi2learn in forum AWT / SwingReplies: 4Last Post: 12-22-2008, 05:46 AM -
passing value from jsp to applet
By bhupendrabjain in forum Java AppletsReplies: 4Last Post: 10-07-2008, 01:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks