File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss Messaging - Sending Object Messages

 
Raja Gullapalli
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to send Object Messages to a JMS Queue. The Object is serializable, and able to pass it to the queue without any error.
On the Consumer side, when I try to type cast it back to the desired object. It fails with the below error:

2009-06-10 10:49:17,515 ERROR [org.jboss.jms.client.container.ClientConsumer] (Thread-30) RuntimeException was thrown from onMessage, 20392446480891904 will be redelivered
java.lang.ClassCastException: org.jboss.jms.message.ObjectMessageProxy
at com.tsswireless.application.dispatch.wpi.dds.DDSWirelessProvider.formatMessageToDDS(DDSWirelessProvider.java:96)
at com.tsswireless.application.dispatch.jms.DispatchQueueListener.onMessage(DispatchQueueListener.java:23)
at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:229)
at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:1043)
at org.jboss.messaging.util.OrderedExecutorFactory$ChildExecutor.run(OrderedExecutorFactory.java:120)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)



I've tried googling around, and everyone suggest to set the Payload type to "SYS.AQ$_JMS_OBJECT_MESSAGE", but could not find where to set it.

Thanks,
Raja
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic