File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes unable to receive object message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "unable to receive object message" Watch "unable to receive object message" New topic
Author

unable to receive object message

Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
I am unable to read the ObjectMessage at the receiving end.

--------------------code for sending object message-------
:
msg = ses.createObjectMessage();
File f = new File("C:/My/Work/SunMQ/P4");
msg.setObject(f);

msgPro.send(ses.createMessage());
:
---------------------------------------------------------
--------------------code for receiving object message----
:
while(true){
Message m = msgCons.receive();
System.out.println(" 1a" + m.getJMSMessageID());
if ( m instanceof ObjectMessage){ // my message doesn't get inside this loop

File f = (File) m;
System.out.println(" Message receive ");

}else { break; }
}
:
---------------------------------------------------------


Ambika Jain
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to receive object message
 
Similar Threads
RE: Receiveing ObjectMessage in JMS
MapMessage vs HashMap in setObjectMessage
JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ.
problem JMS request reply pattern in CMT
Exception in receiving ObjectMessage in JMS