Hello, Leo,
UM can be used with Spring. In general, the Spring XML that works for ActiveMQ should work for UM with only the connection factory class and URL changed accordingly.
You can try this in your Spring XML file:
<bean id="cachedConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
<property name="targetConnectionFactory" ref="umConnectionFactoryBean"/>
<property name="sessionCacheSize" value="2000"/>
</bean>
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">com.pcbsys.nirvana.nSpace.NirvanaContextFactory</prop>
<prop key="java.naming.provider.url">nsp://localhost:9000</prop>
</props>
</property>
</bean>
<bean id="umConnectionFactoryBean" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="jndiName">
<value>EventFactory</value>
</property>
</bean>
Without being familiar with your specific scenario and Spring XML, I hope that works. If it doesn’t, then we can go into more details to find a working solution.
#Universal-Messaging-Broker#webMethods#Integration-Server-and-ESB