There seems something unusual about a few of the "marshallers"...

You have an interface org.servicemix.jbi.messaging.Marshaler ("A plugin strategy which marshals an Object into and out of a JBI message") yet this interface is NOT implemented by all of the ServiceMix built-in marshallers. So what's that about?

For example, a JmsMarshaler appears to be the ONLY marshalling implementation supported by the Jms components (despite them exposing get/setMarshaler).

Why is JmsMarshaler not an implementation of Marshaler?
- JmsMarshaler.toNMS could be rewritten as marshal(...)
- JmsMarshaler.createMessage could be rewritten as unmarshal(...)

(JmsMarshaler is just one example)

Cheers,
Peter.





Reply via email to