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"/> <!-- - red topic --> <jms:MemoryTopic ee:Named="redDestination" resin:Jndi="jms/redDestination"> <topic-name>redDestination</topic-name> </jms:MemoryTopic> <jms-res:MessageSenderResource ee:Named="redSender" resin:Jndi="jms/redSender"> <connection-factory>${coreConnectionFactory}</connection-factory> <destination>${redDestination}</destination> </jms-res:MessageSenderResource> <!-- - blue topic --> <jms:MemoryTopic ee:Named="blueDestination" resin:Jndi="jms/blueDestination"> <topic-name>blueDestination</topic-name> </jms:MemoryTopic> <jms-res:MessageSenderResource ee:Named="blueSender" resin:Jndi="jms/blueSender"> <connection-factory>${coreConnectionFactory}</connection-factory> <destination>${blueDestination}</destination> </jms-res:MessageSenderResource> </web-app>