There are two points to start. First is the setEvent() method in the
response (StateAwareResponseImpl) class. In this place i want to
serialize the object payload. There are several steps to achieve this:

* Create a new JaxbContext with the clazz information of the payload
* Create a new Marshaller
* Set a few properties (output and default event handler) and
* Marshall it into a StringWriter

This writer is then transformed into a reader and into a
XmlStreamReader, which is then delivered to the event provider.

The second point is the deserialization in the EventRequestImpl class
(getEvent() method.) The same steps take place, but an Unmarshaller is
created.

Reply via email to