I have a scenario where I'm using WebMethods
Broker, which if I'm not mistaken doesn't have a Resouce Adaptor (hence Generic
RA).
BTW, I want the use jencks-all.jar as to not depend on configuring the (.rar) adaptor with WebSphere. I'm not clear on configuring via Spring. Specifically, configuring this beans property (classname) values:
BTW, I want the use jencks-all.jar as to not depend on configuring the (.rar) adaptor with WebSphere. I'm not clear on configuring via Spring. Specifically, configuring this beans property (classname) values:
<bean id="jmsResourceAdaptor" class="com.sun.genericra.GenericJMSRA">
<property name="providerIntegrationMode" value="bean"/>
<property name="xAConnectionFactoryClassName" value="???" />
<property name="queueClassName" value="???"/>
<property name="topicClassName" value="???" />
</bean>
In the docs I see a WmConnectionFactory which
extends javax.jms.ConnectionFactory but not a Wm class specific to xa, queue, or
topic.
Anybody toyed with this???
---
FWIW, I can subscribe to WebMethods Broker
using JmsTemplate with the following beans configured:
<bean id="jndiTemplate"
class="org.springframework.jndi.JndiTemplate" abstract="false" singleton="true"
lazy-init="default" autowire="default"
dependency-check="default">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">com.webmethods.jms.naming.WmJmsNamingCtxFactory</prop>
<prop key="java.naming.provider.url">wmjmsnaming://localBroker</prop>
<prop key="com.webmethods.jms.naming.clientgroup">admin</prop>
</props>
</property>
</bean>
<property name="environment">
<props>
<prop key="java.naming.factory.initial">com.webmethods.jms.naming.WmJmsNamingCtxFactory</prop>
<prop key="java.naming.provider.url">wmjmsnaming://localBroker</prop>
<prop key="com.webmethods.jms.naming.clientgroup">admin</prop>
</props>
</property>
</bean>
<bean id="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate" />
</property>
<property name="jndiName">
<value>SampleTopicConnectionFactory</value>
</property>
</bean>
<bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate" />
</property>
<property name="jndiName">
<value>SampleTopic</value>
</property>
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory">
<ref bean="jmsConnectionFactory" />
</property>
<property name="defaultDestination">
<ref bean="destination" />
</property>
<property name="pubSubDomain">
<value>true</value>
</property>
<property name="receiveTimeout">
<value>20000</value>
</property>
</bean>
<bean id="subscriber" class="topic.Subscriber">
<property name="jmsTemplate">
<ref bean="jmsTemplate" />
</property>
</bean>
<property name="jmsTemplate">
<ref bean="jmsTemplate" />
</property>
</bean>
