1. create a servicemix-bean service unit (via mvn or via smx-arch tool) 2. change the dependencies of your SU's pom to use xstream 3. adapt the existing class (it's created automatically for you) to grab the xml from the incoming message and transform it via xstream into java objects.
Hint: - the java objects (if not J2SE objects) should be available to the bean - read the xstream user guide on how to do it Btw. you can do the same with castor as well. Lars On Wednesday 02 July 2008 13:51:16 jayasreeb wrote: > HI > > can you give me an existing example to do this? > I have done xml to java transformation using castor in java platform. > Will I be able to replicate same in service mix platform also.. > > jayasreeb wrote: > > Hi, > > > > My requirement is to transform XML to Java objects in service mix. > > How can I do this?Can you provide me an example for this?
