Kit, I would prefer to write marshallers and configure with the endpoints for messages other than TextMessages to create a normalized message. It would be easier to process them using the standard components afterwards. If you send the bytes as a Base64 encoded string, you have to write the logic(custom components) to parse it if you want to use the content in the bus.
Regards, Rabi Mishra, http://rabisblog.blogspot.com/ c++; /* this makes c bigger but returns the old value */ -----Original Message----- From: Kit Plummer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:57 PM To: [email protected] Subject: Re: Example of custom JMS msg Kit Plummer Advanced Programs Raytheon Missile Systems 520.360.4729 (cell) 520.545.9346 (desk) kitplummer (im)Yes...the TextMessage limitation (due to the NormalizedMessage) is somewhat troublesome. But, if you want to deal with "bytes" for example you can create a base64 element type in the XML and embed into the TextMessage. rabi wrote: > ServiceMix JMS consumer uses DefaultConsumerMarshaler for TextMessage. > You can send a javax.jms.TextMessage with any text content. you can > add the filenames etc that you require to it(can create some xml structure). > > If you do not want to use TextMessage then you can write your own > marshaller and configure it in your xbean configuration. > > > > > Gordon Dickens wrote: >> Hello, >> >> Can anyone point me to an example of sending a JMS message in >> ServiceMix using JBI? I am trying to send a JMS message indicating >> that a file has arrived in a directory. I would like the message to >> include at a minimum the filename and directory. >> >> I have looked through several JMS examples and I could not find any >> clear indication of how to send custom contents (such as file name >> and directory). >> >> Thanks, >> Gordon Dickens >> >> > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
