[
https://issues.apache.org/jira/browse/PLUTO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ate Douma resolved PLUTO-337.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Implemented
> Add JAXB object payload delivering
> ----------------------------------
>
> Key: PLUTO-337
> URL: https://issues.apache.org/jira/browse/PLUTO-337
> Project: Pluto
> Issue Type: New Feature
> Components: portlet container
> Affects Versions: 1.1-286-COMPATIBILITY
> Reporter: Christian Raschka
> Fix For: 1.1-286-COMPATIBILITY, 2.0.0
>
>
> Jaxb annotated classes should be serialized and deserialized by the pluto
> container. Annotated classes are those, who have a @XmlRootElement
> annotation right before the classname.
> @XmlRootElement
> public class Name implements Serializable{
> private String firstName;
> private String lastName;
> [...]
> }
> Now you can use this class as object payload if you are sending an event.
> response.setEvent(qname, name);
> And if you process this event, you should be able to cast the payload back to
> this object.
> processEvent(...) {
> Event event = request.getEvent();
> if (event.getName().equals("your event name"){
> Name name = (Name) event.getValue();
> }
> }
> This should be transparent to the user.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.