Skip to Content
0
Former Member
Jul 25, 2007 at 08:01 AM

Problem with ObjectMessage in Message Driven Bean

156 Views

Hi everyone,

I have a problem whiling developing a MDB scenario with ObjectMesssage.

Scenario description:

A client sends a MapMessage to a MDB and waits for a reply. The MDB will process this MapMessage and creates several reply objects, which implement the java Serializable interface and are saved in an ArrayList.

At the end, the MDB will put the ArrayList into the ObjectMessage (ObjectMessage.setObject()) and sends the message back to the client.

For this scenario, three DCs are created --> 1. DC for client; 2. DC for MDB; 3. DC for the "reply object". The "reply object" DC is referenced in the client DC and MDB DC by using "Used DC".

In the Compile Time, there is no error about the "reply object". I could use the "reply object" in the client DC or in the MDB DC.

In the Run Time, the MDB DC can build the reply object instances and send them in the Object message. But I got exceptions on the client side:

com.sap.jms.client.message.ObjectMessage.getObject(ObjectMessage.java:114)

at com.sap.jms.protocol.message.MessageRequest.readBody(MessageRequest.java:408)

javax.jms.JMSException: null class

Exception was thrown while trying to load class: uwl.konplan.domino.provider.DominoItem with classloader: com.sap.engine.services.deploy.server.ApplicationLoade

Please give me some tips.

with best regards

Xiang