[seam-dev] Configuring of JMS Forwarding

Pete Muir pmuir at redhat.com
Wed May 5 08:59:06 EDT 2010


On 30 Apr 2010, at 17:36, Jordan Ganoff wrote:

> All,
> 
> I'd like some feedback on the following.  I brought up an idea for defining configuration for the forwarding of events over JMS in our weekly meeting on (4/29/2010).  The basic idea is that users should be able to easily configure which events get forwarded to which destinations.  A user should be able to define a mapping of event types to destinations in a bean (and then optionally in xml using seam-xml).  This might look like:
> 
> class JmsForwardingObserver implements ObserverMethod
> {
>    JmsForwardingConfiguration config;
>    ...
> }
> 
> class JmsForwardingConfiguration
> {
>    // Destinations to forward to
>    Set<? extends Destination> getDestinations();
>    // Event types to observer and forward
>    Set<? extends Event<?>> getEventTypes();
> }
> 
> By default, we would create an instance of JmsForwardingObserver for every registered JmsForwardingConfiguration.  The user could also register their own JmsForwardingObservers to handle special forwarding requirements.  And this could all be done with seam-xml-bean-config if the user chooses.

I like the idea. Though I think we can just call the class JmsForwarding...

> 
> Is there a preferred way to allow users to configure aspects of a module yet?



> 
> In the meeting I mentioned an annotation-based configuration but on second thought I'm not sure how that would work to define sets of destinations or events cleanly.

Lets start with this.

> 
> WDYT?
> 
> -- 
> Jordan Ganoff
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev




More information about the seam-dev mailing list