Here's a sneak peak at the new EventRouting API coming to the Seam 3 JMS Module:
public class RoutingConfig
{
@Inject EventBridge bridge;
@Inject @MyQueue Queue q;
private static final AnnotationLiteral<Bridged> BRIDGED = new AnnotationLiteral<Bridged>() {};
@EventRouting
public Route registerBridgedRouting()
{
return bridge.createRoute(EGRESS, String.class).addQualifiers(BRIDGED).connectTo(Queue.class, q);
}
}
This will replace JmsForwarding and is scheduled to be included in Seam JMS 3.0.0.Alpha2. The nightly snapshots include a working egress implementation. Ingress to follow shortly. Stay tuned!
Comments