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 » Storing Java Objects on a Queue

Post new topic  Reply to topic
 Storing Java Objects on a Queue « View previous topic :: View next topic » 
Author Message
UpkarSharma
PostPosted: Wed Sep 05, 2001 7:47 pm    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2001
Posts: 27
Location: Mumbai

Can a java object be stored on a queue??????????
Can it be retrieved back too????????
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pazhanikumart
PostPosted: Wed Sep 05, 2001 9:18 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2001
Posts: 32
Location: Chennai,India

hai
yes you can keep java objects in queues

to do this you have to use the class JMSObjectMessage in which you can set and get objects using the methods setObject and getObject resp.
The only condition is that your object should be Serializable




_________________
In the end everything is Right ,If it's not then it's not the end



[ This Message was edited by: pazhanikumart on 2001-09-05 22:21 ]
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
UpkarSharma
PostPosted: Thu Sep 06, 2001 1:53 am    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2001
Posts: 27
Location: Mumbai

Thanks for the Info.
I was able to store the Java objects using MQI too.
It works quite fine.
MQMessage class has one method "writeObject(Object obj)" to do this job.

Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolban
PostPosted: Thu Sep 06, 2001 8:06 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

The important thing to remember is that any binary data may be stored on an MQSeries queue. Since Java objects can be serialized to binary data, any java object can be stored in a queue.
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 » Storing Java Objects on a Queue
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.