Chapter 11. JMS scenario 367
if (ic==null) {
//System.out.println("ic was null, it was probably the first time
this was called");
getInitialContext();
}
retreived=ic.lookup(jndiName);
objectNames.put(jndiName,retreived);
return retreived;
}
}
The JMS resource reference is bound to the JMS resource JNDI name during
application assembly or deployment.
11.3.3 Message selectors
An activation specification defined at runtime triggers the message-driven bean
when a message arrives on the queue. When defining the activation
specification, you can limit the messages that trigger the MDB by specifying a
message selector. See Figure 11-4 on page 368.

Get Patterns: Implementing Self-Service in an SOA Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.