aspose file tools*
The moose likes Web Services and the fly likes Cannot convert DataHandler to JMS mesage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Cannot convert DataHandler to JMS mesage" Watch "Cannot convert DataHandler to JMS mesage" New topic
Author

Cannot convert DataHandler to JMS mesage

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi

I am using ActiveMQ for messaging and Mule 2.0.2 as ESB.
As a normal flow if I transfer a string it will access web service and place the string in messaging queue. Mule will read the string automatically and transfers the data further for processing.

If I pass a DataHandler object (to transfer a file) using web service. It says "Cannot convert object [javax.activation.DataHandler@8edd79] to JMS message", even though I am converting it to JMS message.

Here is the web service method which does the conversion,



queueSender.sendMessage(jmsMsg); will be mapped to the following method


And sometimes I get the following error message.


Please look into the error and suggest some solution.


Praveen
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Please give some solution for this problem.
 
wood burning stoves
 
subject: Cannot convert DataHandler to JMS mesage