You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by wänä <we...@ipt.ch> on 2008/09/12 13:51:14 UTC

JAXB use through Exchange/Message

Hi all,

I have no clue about how to use JAXB types when processing a message. I
managed to configure a route to do the transform to JAXB, see below, but
have no idea how to retrieve the message content as JAXB objects.

Setup:
- CXF Frontend
- Component on route which should handle the content through the JAXB types

Route:
    <camel:route>
      <camel:from uri="cxf:bean:get-file-list"/>

      <camel:unmarshal>
        <camel:jaxb
          prettyPrint="true"
          contextPath="com.ruag.poc.milo.businessproxy._1_0"/>
      </camel:unmarshal>

      <camel:to uri="bean:encryption-service?methodName=service"/>
    </camel:route>

Is this a valid idea anyway?

Thank you in advance, every help is appreciated!

Best regards, Werner
-- 
View this message in context: http://www.nabble.com/JAXB-use-through-Exchange-Message-tp19454245s22882p19454245.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: JAXB use through Exchange/Message

Posted by wänä <we...@ipt.ch>.
Hello Claus,

thank you for your reply. I managed to figure it out by following an example
using SOAPMessage and applying a debugger.

Best regards, Werner


Claus Ibsen wrote:
> 
> Hi
> 
> Yes it does look valid at first glance. Have you tried running it?
> 
> You can read about the JAXB dataformat in the wiki docs at:
> http://activemq.apache.org/camel/data-format.html
> 
> 
> 
> 
> Med venlig hilsen
>  
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
> -----Original Message-----
> From: wänä [mailto:werner.koch@ipt.ch] 
> Sent: 12. september 2008 13:51
> To: camel-user@activemq.apache.org
> Subject: JAXB use through Exchange/Message
> 
> 
> Hi all,
> 
> I have no clue about how to use JAXB types when processing a message. I
> managed to configure a route to do the transform to JAXB, see below, but
> have no idea how to retrieve the message content as JAXB objects.
> 
> Setup:
> - CXF Frontend
> - Component on route which should handle the content through the JAXB
> types
> 
> Route:
>     <camel:route>
>       <camel:from uri="cxf:bean:get-file-list"/>
> 
>       <camel:unmarshal>
>         <camel:jaxb
>           prettyPrint="true"
>           contextPath="com.ruag.poc.milo.businessproxy._1_0"/>
>       </camel:unmarshal>
> 
>       <camel:to uri="bean:encryption-service?methodName=service"/>
>     </camel:route>
> 
> Is this a valid idea anyway?
> 
> Thank you in advance, every help is appreciated!
> 
> Best regards, Werner
> -- 
> View this message in context:
> http://www.nabble.com/JAXB-use-through-Exchange-Message-tp19454245s22882p19454245.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/JAXB-use-through-Exchange-Message-tp19454245s22882p19488246.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: JAXB use through Exchange/Message

Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi

Yes it does look valid at first glance. Have you tried running it?

You can read about the JAXB dataformat in the wiki docs at:
http://activemq.apache.org/camel/data-format.html




Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: wänä [mailto:werner.koch@ipt.ch] 
Sent: 12. september 2008 13:51
To: camel-user@activemq.apache.org
Subject: JAXB use through Exchange/Message


Hi all,

I have no clue about how to use JAXB types when processing a message. I
managed to configure a route to do the transform to JAXB, see below, but
have no idea how to retrieve the message content as JAXB objects.

Setup:
- CXF Frontend
- Component on route which should handle the content through the JAXB types

Route:
    <camel:route>
      <camel:from uri="cxf:bean:get-file-list"/>

      <camel:unmarshal>
        <camel:jaxb
          prettyPrint="true"
          contextPath="com.ruag.poc.milo.businessproxy._1_0"/>
      </camel:unmarshal>

      <camel:to uri="bean:encryption-service?methodName=service"/>
    </camel:route>

Is this a valid idea anyway?

Thank you in advance, every help is appreciated!

Best regards, Werner
-- 
View this message in context: http://www.nabble.com/JAXB-use-through-Exchange-Message-tp19454245s22882p19454245.html
Sent from the Camel - Users mailing list archive at Nabble.com.