Hi All,

Id like to start to discuss a way to customise object serialisation on ActiveMQ.

Currently Message Object serialisation doesn’t allow any pluggability, there 
are many serialisation formats organisations may want to use instead for 
different pros and cons.

A good example here would be AVRO with a Schema Registry, in Kafka.

What i was thinking would be to allow a way to inject a SerDes implementation 
into the connection factory.

If present then this would be used to serialise the Object instead of the 
default, and subsequently create/convert to a BytesMessage, with a header set 
to denote it was custom serialised.
The BytesMessage on consume, if custom serde present and header, would then be 
transformed back into an ObjectMessage, else pass through as a BytesMessage.

This way older consumers would still able to consume the message as a 
BytesMessage, and like wise can map to other protocols e.g. AMQP. We would also 
look to promote support in the QPID solution also. But first thought it best to 
get consensus here.

WDYT??

Cheers
Mike

Reply via email to