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


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.

Reply via email to