Thanks Bruce for the information.  It connects me to a lot of hidden 
facts. Appreciate it.

Regards
Mat




"Bruce Snyder" <[EMAIL PROTECTED]> 
04/21/2006 05:05 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: Help in reading text files using the file-Binding example






On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> A simple clarification, xml content is the one closest to  Normalized
> messages hence servicemix classes widely support that, but is there any
> classes which helps reading and writing text files with some default xml
> conversion before transfering it through NMR??

The DefaultMarshaler and the DefaultFileMarshaler both handle messages
that are already XML. Depending on what you need exactly, I'd
recommend extending one of the existing classes to build your own
marshaler.

The DefaultMarshaller extends PojoMarshaler which is for marshalling
java.lang.Objects which doesn't sound like what you want. On the other
hand, the DefaultFileMarshaler extends MarshalerSupport and implements
FileMarshaler. MarshalerSupport is for building a basic marshaler but
FileMarshaler is for converting a file to a normalized message.

It sounds to me like you should consider extending the
DefaultFileMarshaler to create your own FileMarshaler implementation
for transforming your text files. Your implementations of the
readMessage() and writeMessage() methods will transform the text file
content into a normalized message.

Bruce
--
perl -e 'print 
unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/

Reply via email to