users@glassfish.java.net

Re: MDB00037: Message-driven bean invocation exception: [javax.ejb.EJBException

From: <glassfish_at_javadesktop.org>
Date: Mon, 22 Feb 2010 04:47:43 PST

Hi Dies,

Thanks for offering your valuable suggestion.

>ObjectMessage objectMessage = (ObjectMessage) message.getObject();
I got the following a compilation error for the above statement:

Cannot find symbol
       Symbol: method getObject()
       Location: interface javax.jms.Message.

A slightly different way of unwapping the object message such as:
 
       ObjectMessage objectMessage = ((ObjectMessage) message).getObject();

resulted in a different compilation error as follows:

        Incompatible types
        required: javax.jms.objectMessage
        found: java.io.Serializable

Am I using the wrong class?

Thanks,

Jack
[Message sent by forum member 'htran_888' (htran_888_at_yahoo.com.au)]

http://forums.java.net/jive/thread.jspa?messageID=387984