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

        Christian Raschka created issue -
        Hide
        Ate Douma added a comment -

        Implemented

        Show
        Ate Douma added a comment - Implemented
        Ate Douma made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 12312914 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12399277 ] Default workflow, editable Closed status [ 12565295 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12565295 ] jira [ 12586001 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development