Hi,
In the onMessage(Message inMessage) method of a message driven bean, I'm trying a simple if statement:
<<<<<<<<<<<<<<<<<<<<
if (inMessage instanceof javax.jms.ObjectMessage)
{
...
}
>>>>>>>>>>>>>>>>>>>>
and it never evaluates to true even though it reports its class as being of type org.jboss.mq.SpyObjectMessage and my client is sending an ObjectMessage:
<<<<<<<<<<<<<<<<<<<<
...
ObjectMessage om = session.createObjectMessage();
om.setObject(new Integer(100));
sender.send(om);
...
>>>>>>>>>>>>>>>>>>>>
Any ideas??
Never mind. After much checking I found my mistake. The class file inside the jar file that was inside the ear file was not being updated. So I wasn't actually running the code I had added to check for instanceof ObjectMessage. Sorry about that.