You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/04/29 14:44:03 UTC

[jira] [Created] (CAMEL-3914) camel-jaxb should not try to convert to BeanInvocation when routing to beans using JAXB payloads

camel-jaxb should not try to convert to BeanInvocation when routing to beans using JAXB payloads
------------------------------------------------------------------------------------------------

                 Key: CAMEL-3914
                 URL: https://issues.apache.org/jira/browse/CAMEL-3914
             Project: Camel
          Issue Type: Improvement
          Components: camel-jaxb
    Affects Versions: 2.7.0, 2.6.0
            Reporter: Claus Ibsen
             Fix For: 2.8.0


When Camel uses beans in routes, the type convert system will check if the payload is a bean invocation (used by proxy and whatnot).

The JAXB fallback converter should not support this as it will lead to unnecessary attempts to convert payloads to JAXB as part of the bean invocation. And that may lead to issue if JAXB cannot do this due no ObjectFactory and whatnot.

So even if users are routing to beans and have a signature as follows
{code}
public void doSomething(Exchange exchange) { 
...
}
{code}

The end user would not expect any type converter attempt for his JAXB payload, as the parameter type is Exchange.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-3914) camel-jaxb should not try to convert to BeanInvocation when routing to beans using JAXB payloads

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3914.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

> camel-jaxb should not try to convert to BeanInvocation when routing to beans using JAXB payloads
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3914
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3914
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>    Affects Versions: 2.6.0, 2.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>
> When Camel uses beans in routes, the type convert system will check if the payload is a bean invocation (used by proxy and whatnot).
> The JAXB fallback converter should not support this as it will lead to unnecessary attempts to convert payloads to JAXB as part of the bean invocation. And that may lead to issue if JAXB cannot do this due no ObjectFactory and whatnot.
> So even if users are routing to beans and have a signature as follows
> {code}
> public void doSomething(Exchange exchange) { 
> ...
> }
> {code}
> The end user would not expect any type converter attempt for his JAXB payload, as the parameter type is Exchange.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira