-
-
Save gdenning/1167396 to your computer and use it in GitHub Desktop.
JMS spring config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jms.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory | |
jms.provider.url=tcp://localhost:61616 | |
jms.factory.url.pkgs= | |
jms.factory.name=ConnectionFactory | |
jms.queue.name=demo.A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jms.factory.initial=org.jnp.interfaces.NamingContextFactory | |
jms.provider.url=jnp://localhost:1099 | |
jms.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | |
jms.factory.name=ConnectionFactory | |
jms.queue.name=queue/QueueA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> | |
<beans> | |
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="location" value="classpath:jboss.properties" /> | |
<!-- <property name="location" value="classpath:activemq.properties" /> --> | |
</bean> | |
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> | |
<property name="environment"> | |
<props> | |
<prop key="java.naming.factory.initial">${jms.factory.initial}</prop> | |
<prop key="java.naming.provider.url">${jms.provider.url}</prop> | |
<!-- ActiveMQ --> | |
<!-- <prop key="queue.demo.A">${jms.queue.name}</prop> --> | |
<!-- Jboss MQ --> | |
<prop key="java.naming.factory.url.pkgs">${jms.factory.url.pkgs}</prop> | |
</props> | |
</property> | |
</bean> | |
<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> | |
<property name="jndiName"> | |
<value>${jms.factory.name}</value> | |
</property> | |
<property name="jndiTemplate"> | |
<ref local="jndiTemplate"></ref> | |
</property> | |
</bean> | |
<bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean"> | |
<property name="jndiName"> | |
<value>${jms.queue.name}</value> | |
</property> | |
<property name="jndiTemplate"> | |
<ref local="jndiTemplate"></ref> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment