[
http://jira.jboss.com/jira/browse/JBESB-562?page=comments#action_12362029 ]
Daniel Bevenius commented on JBESB-562:
---------------------------------------
Sorry, I noticed that won't work:) It works with the test class but will not be ok in
the jboss-esb.xml file.
How about:
<property name="aliases">
<alias name="vehicles"
class="java.util.ArrayList"/>
<alias name="vehicle" class="Vehicle"/>
<alias name="serviceType" class="ServiceType"/>
<alias name="phonenumbers"
class="java.util.ArrayList"/>
<alias name="phonenumber" class="PhoneNumber"/>
<alias name="comments"
class="java.util.ArrayList"/>
<alias name="comment" class="Comment"/>
</property>
I have commited code that works with this configuration (same workspace as mentioned
above) and this time tested it in a the jboss-esb.xml.
Thanks,
/Daniel
Add additional optional aliases XStreamToObject converter
---------------------------------------------------------
Key: JBESB-562
URL:
http://jira.jboss.com/jira/browse/JBESB-562
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Rosetta, Transformation Service
Affects Versions: 4.2 Milestone Release 2
Reporter: Daniel Bevenius
Assigned To: Tom Fennelly
Priority: Trivial
Fix For: 4.2
I needed the ability to specify extra aliases for XStreamToObject and from what I can see
one can only specify one alias, which is for the main object in the xml.
This is a suggestion of what the configuration could look like:
<Action name="doCustomer" processor="XStreamObject">
<property name="class-alias" value="Customer" />
<property name="incoming-type" value="CustomerProcessor"
/>
<property name="exclude-package" value="false" />
<!-- Optional list of extra aliases to add to XStream -->
<aliases>
<alias name="aliasName" class="className" />
<alias name="aliasName" class="className" />
...
</aliases>
</Action>
I have check in this suggestion here:
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/
The classes of interest are:
XStreamToObjectUnitTest
XStreamToObject
/Daniel
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira