JMS Memory Topic Configuration with Dependency Injection (CDI) and JNDI
From Resin 4.0 Wiki
<web-app xmlns="http://caucho.com/ns/resin" xmlns:ee="urn:java:ee" xmlns:resin="urn:java:com.caucho.resin" xmlns:jms="urn:java:com.caucho.jms" xmlns:jms-res="urn:java:com.caucho.jms.resource" xmlns:my-jms="urn:java:com.my_com.jms"> <jms:ConnectionFactoryImpl ee:Named="coreConnectionFactory resin:Jndi="jms/coreConnectionFactory"/> <my-jms:NoOpMessageSender ee:Named="nopMessageSender" resin:Jndi="jms/NopMessageSender"/> <jms:MemoryTopic ee:Named="redDestination" resin:Jndi="jms/redDestination"> <topic-name>redDestination</topic-name> </jms:MemoryTopic> <jms-res:MessageSenderResource ee:Named="redEventSender" resin:Jndi="jms/RedEventSender"> <connection-factory>${coreConnectionFactory}</connection-factory> <destination>${redDestination}</destination> </jms-res:MessageSenderResource> <jms:MemoryTopic ee:Named="blueDestination" resin:Jndi="jms/DumpDestination"> <topic-name>blueDestination</topic-name> </jms:MemoryTopic> <jms-res:MessageSenderResource ee:Named="blueMessageSender" resin:Jndi="jms/BlueMessageSender"> <connection-factory>${coreConnectionFactory}</connection-factory> <destination>${blueDestination}</destination> </jms-res:MessageSenderResource> </web-app>