Hi You most likely need to not map the message automatic, eg mapJmsMessage=false And then you may be able to grab that ActiveMQBlobMessage message.
On Mon, Apr 26, 2010 at 6:26 PM, GibKing <gibk...@byteholder.de> wrote: > > Hi everyone, > > i like to send files over ActiveMQ using the following setup. > > Code snippet to send the file: > BlobMessage message = session.createBlobMessage(inputStream); > message.setJMSType("Filetransfer"); > message.setStringProperty("Filename", filename); > ActiveMQQueue queue = (ActiveMQQueue) session.createQueue("filequeue"); > MessageProducer producer = session.createProducer(queue); > producer.send(message); > > Camel Configuration snippet: (camel.xml) > <route> > <from uri="activemq:filequeue"> > <to uri="bean:filehandler"> > </route> > <!-- beanconfiguration.... --> > > An finally the filehandler: > public class FileHandler{ > �...@handler > public void onMessage(Exchange exchange){ > .... > } > > My question is how i can get an ActiveMQBlobMessage (or the InputStream) > inside my filehandler. > Is this possible after all? > > greets > GibKing > > > -- > View this message in context: > http://old.nabble.com/Recieving-BlobMessages-routed-with-Camel-tp28367084p28367084.html > Sent from the Camel - Users (activemq) mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus