activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: ActiveMQ, Spring/JMS, and text messages
Date Tue, 14 Oct 2008 11:51:27 GMT
2008/10/14 Dejan Bosanac <>:
> Hi,
> this all looks good. The fact that you see text = null (even when it is
> not null) in the log is because "text" filed of the text message object
> is set only after the first call of getText() method.
> What is returned by
> objMessage. getText()
> call?
> Also, can you check that the message you've received is the same as the
> one you are looking at in the web console (you can compare message ids)
> To devs: should we override toString() method of the ActiveMQTextMessage
> to call getText() in case text is null and then use introspection to
> print itself? This way it is confusing, since newly consumed messages
> seems to have no text in them.

Great idea! Ditto on ObjectMessage too!

We could also call getProperties() to ensure the properties appear as well?


Open Source Integration

View raw message