You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Łukasz Dywicki (JIRA)" <ji...@apache.org> on 2010/01/19 13:34:44 UTC
[jira] Created: (CAMEL-2381) Partial marshalling and unmarshalling
Partial marshalling and unmarshalling
-------------------------------------
Key: CAMEL-2381
URL: https://issues.apache.org/activemq/browse/CAMEL-2381
Project: Apache Camel
Issue Type: Improvement
Components: camel-jaxb
Affects Versions: 2.1.0
Reporter: Łukasz Dywicki
JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
Partial unmarshalling
https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
Partial marshalling
http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2381) camel-jaxb - Partial marshalling and
unmarshalling
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2381.
--------------------------------
Resolution: Fixed
> camel-jaxb - Partial marshalling and unmarshalling
> --------------------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Fix For: 2.2.0
>
> Attachments: jaxb-partial-support-2.patch, jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2381) Partial marshalling and
unmarshalling
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57014#action_57014 ]
Claus Ibsen commented on CAMEL-2381:
------------------------------------
trunk: 901192.
Lukas do you mind working on wiki documentation for this new feature?
You can attach the documentation as a file to this JIRA. Then I can use that when editing it in the wiki.
In the longer run you may want to look into signing an ICLA so you can edit wiki yourself.
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Attachments: jaxb-partial-support-2.patch, jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-2381) Partial marshalling and unmarshalling
Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Łukasz Dywicki reassigned CAMEL-2381:
-------------------------------------
Assignee: Łukasz Dywicki
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2381) Partial marshalling and unmarshalling
Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Łukasz Dywicki updated CAMEL-2381:
----------------------------------
Attachment: jaxb-partial-support-2.patch
Patch with ClassResolver in place of ObjectHelper.
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Attachments: jaxb-partial-support-2.patch, jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2381) Partial marshalling and unmarshalling
Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Łukasz Dywicki updated CAMEL-2381:
----------------------------------
Patch Info: [Patch Available]
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Attachments: jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2381) Partial marshalling and
unmarshalling
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56997#action_56997 ]
Claus Ibsen commented on CAMEL-2381:
------------------------------------
You must not use ObjectHelper.loadClass directly
{code}
+ if (partClass != null) {
+ setProperty(dataFormat, "partClass", ObjectHelper.loadClass(partClass));
+ }
{code}
What you need is to obtain classResolver from CamelContext as it can provide you with the correct one to use. This also works in OSGi environments then.
You may then need to lazy load the class in camel-jaxb when you have a reference to the Exchange from the marshal / unmarshal methods.
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Attachments: jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2381) camel-jaxb - Partial marshalling and
unmarshalling
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-2381:
-------------------------------
Fix Version/s: 2.2.0
Summary: camel-jaxb - Partial marshalling and unmarshalling (was: Partial marshalling and unmarshalling)
> camel-jaxb - Partial marshalling and unmarshalling
> --------------------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Fix For: 2.2.0
>
> Attachments: jaxb-partial-support-2.patch, jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2381) Partial marshalling and unmarshalling
Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Łukasz Dywicki updated CAMEL-2381:
----------------------------------
Attachment: jaxb-partial-support.patch
> Partial marshalling and unmarshalling
> -------------------------------------
>
> Key: CAMEL-2381
> URL: https://issues.apache.org/activemq/browse/CAMEL-2381
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jaxb
> Affects Versions: 2.1.0
> Reporter: Łukasz Dywicki
> Assignee: Łukasz Dywicki
> Attachments: jaxb-partial-support.patch
>
>
> JAXB 2 supports partial (un)marshalling. With current version of camel-jaxb it is not possible to use this feature.
> Partial unmarshalling
> https://jaxb.dev.java.net/guide/_XmlRootElement_and_unmarshalling.html
> Partial marshalling
> http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.