Pluto
  1. Pluto
  2. PLUTO-337

Add JAXB object payload delivering

    Details

      Description

      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.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Christian Raschka
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development