Minor enhancements to DistributedCommandBus

Hi Allard,

A couple of suggestions for minor enhancements to the DistributedCommandBus module.

JGroupsConnectorFactoryBean:

  1. Extend JGroupsConnectorFactoryBean with a new field “channelName” which will be passed through to the JChannel.setChannelName method on creation. This allows more meaningful names to be used than those automatically generated by JGroups.

AnnotationRoutingStrategy:

  1. Extend AnnotationRoutingStrategy to allow specifying the type(s) of Annotation that will be checked for, rather than hard wiring to TargetAggregateIdentifier. The use case is to support Command payload classes in POJO API JARs that otherwise have no need to reference Axon code. With this change they can declare their own Annotation types and remain isolated.

Let me know if you are interested, I can provide the pull requests.

Regards,
Mark

Hi Mark,

both improvements sound good. If you can provide a pull request for them, that would be great.

Cheers,

Allard

Hi Mark,

thanks for the pull requests and corresponding issues in the issue tracker! I did a quick review and it looks very good. I will look into it soon.

Cheers,

Allard