camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: XmlBeans - Working with the data from the routes
Date Wed, 03 Aug 2011 19:25:43 GMT
Hi

You can look at the unit tests of the component. For example this test
https://svn.apache.org/repos/asf/camel/trunk/components/camel-xmlbeans/src/test/java/org/apache/camel/converter/xmlbeans/UnmarshalTest.java



On Wed, Aug 3, 2011 at 9:16 PM, Robert J. Liguori <camel@gliesian.com> wrote:
> Can you share your route?
>
> For example:
>
>  from("file:src/data?noop=true").unmarshal().xmlBeans().[HOW DO I GET
> THE OBJECT IN MY APP FROM HERE"
>
> Note: If I create a processor, a string can be rendered (e.g., String s
> = exchange.getIn().getBody(String.class);).  But I'm having issues with
> using this string with the associated document class. (Note: it works
> fine outside of (within) the processor.
>
> Actually, I think that I'm misusing the architecture.
>
> Should I be using a processor, or should I be consuming off an endpoint
> (e.g., making use ActiveMQ), or some other way... I simply want to get
> my unmarshalled XMLBeans objects into my application so I can manage
> them; I'm trying to use the same application that manages the camel
> routes.
>
> Does anyone see here, where I'm confused?
>
> Thanks,
> -- Robert
>
> Source XML->Validate XML against schema-> Good XML
>
> On Wed, 3 Aug 2011 08:34:02 +0100, Alistair Young
> <alistair.young@uhi.ac.uk> wrote:
>> FWIW, I need to get at messages in a Processor using XMLBeans so I
>> used it to compile the message schema to a jar and use that instead of
>> working with the raw XML.
>>
>> Alistair
>>
>> --------------
>> mov eax,1
>> mov ebx,0
>> int 80
>>
>> On 3 Aug 2011, at 07:11, Claus Ibsen wrote:
>>
>>> Hi
>>>
>>> On Tue, Aug 2, 2011 at 6:24 PM, Robert J. Liguori <camel@gliesian.com>
wrote:
>>>> What are my options for working with XML object instances after I use a
>>>> route to unmarshal the data with XmlBeans.
>>>>
>>>> Just a couple of pointers as how this is done would be cool... Thanks!
>>>>
>>>
>>> Its really up to you, what you want to do.
>>>
>>> If you have XML data, then you can use XSLT to transform the data, or
>>> use xquery/xpath to grab content from it, etc.
>>>
>>>
>>>> -- Robert
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> FuseSource
>>> Email: cibsen@fusesource.com
>>> Web: http://fusesource.com
>>> Twitter: davsclaus, fusenews
>>> Blog: http://davsclaus.blogspot.com/
>>> Author of Camel in Action: http://www.manning.com/ibsen/
>
> --
> Sincerely,
> Robert J. Liguori
> STG Technologies, Inc.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message