You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by manua <ag...@gmail.com> on 2009/05/22 21:21:30 UTC

Unable to get object from object message using getObject()

Hi All,

I am trying to implement request/response using ActiveMQ. I am transferring
a list in response from the server. At the client side, it shows that it has
recieved the object and content is not null. But when i tries to get the
object, as studysDTOs = (List<StudysDTO>) objmessage.getObject();	it hangs.

I tried to print my object message and it shows,

ActiveMQObjectMessage {commandId = 8, responseRequired = false, messageId =
ID:domU-12-31-38-00-35-27-33265-1243019418220-2:0:1:1:2, originalDestination
= null, originalTransactionId = null, producerId =
ID:domU-12-31-38-00-35-27-33265-1243019418220-2:0:1:1, destination =
temp-queue://ID:abc-3455-1243019496968-0:0:1, transactionId = null,
expiration = 0, timestamp = 1243019488254, arrival = 0, brokerInTime =
1243019488254, brokerOutTime = 1243019488255, correlationId =
e3fc409d9acaf2cc, replyTo = null, persistent = false, type = null, priority
= 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed
= false, userID = null, content =
org.apache.activemq.util.ByteSequence@471e30, marshalledProperties = null,
dataStructure = null, redeliveryCounter = 0, size = 0, properties = null,
readOnlyProperties = true, readOnlyBody = true, droppable = false}

Please let me know if there is any other way to get the object or if I am
missing something.

The same code works fine when I run both the server an d client on the same
machine. Problem comes when they are running on differen machines.

Any help in this regard will be highly appreciated.

Thanks,
Manu
-- 
View this message in context: http://www.nabble.com/Unable-to-get-object-from-object-message-using-getObject%28%29-tp23676487p23676487.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.