2008/10/14 Dejan Bosanac <[EMAIL PROTECTED]>: > 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? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com