0 Replies Latest reply on Jul 14, 2008 5:09 PM by Hitesh Parakh

    How to deploy Spring MDP in clustered JBoss environment

    Hitesh Parakh Newbie

      I want to deploy Spring mdp in JBoss clustered environment. Please find below my configurations for spring mdp(which is working in standalone case):

      <bean id="mortgageProductsListener" class="com.vertice.vbp.mdp.MortgageProductsMDP">
       <property name="mortgageProductsService">
       <bean class="com.vertice.vbp.util.BeanInjector">
       <property name="jndiApplicationContext" ref="verticeServiceBeanFactory"></property>
       <property name="beanName" value="MortgageProductsService"></property>
       </bean>
       </property>
       </bean>
      
       <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
       <property name="environment">
       <props>
       <prop key="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</prop>
       <prop key="java.naming.provider.url">ldap://cib-devldap.usa.wachovia.net:4389/ou=1iqa,ou=messaging,dc=wachovia,dc=net</prop>
       </props>
       </property>
       </bean>
      
       <bean id="iqueaProductsTargetConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
       <property name="jndiTemplate">
       <ref bean="jndiTemplate"/>
       </property>
       <property name="jndiName">
       <value>cn=IqueProductsTopicFactory</value>
       </property>
       </bean>
      
       <bean id="iqueaProductsConnectionFactory" class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
       <property name="targetConnectionFactory" ref="iqueaProductsTargetConnectionFactory"></property>
       <property name="username">
       <value>Ique_topic_subscriber</value>
       </property>
       <property name="password">
       <value>Ique_topic_subscriber</value>
       </property>
       </bean>
      
       <bean id="iqueaProductsTopic" class="org.springframework.jndi.JndiObjectFactoryBean">
       <property name="jndiTemplate">
       <ref bean="jndiTemplate"/>
       </property>
       <property name="jndiName">
       <value>cn=Wachovia.CIB.1IQA.Products.Topic</value>
       </property>
       </bean>
      
       <bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
       <property name="connectionFactory" ref="iqueaProductsConnectionFactory"></property>
       <property name="destination" ref="iqueaProductsTopic"></property>
       <property name="messageListener" ref="mortgageProductsListener"></property>
       <property name="pubSubDomain" value="true"></property>
       <property name="subscriptionDurable" value="true"></property>
       <property name="durableSubscriptionName" value="1VBP"></property>
       <!-- <property name="clientId" value="Client1"></property> -->
       </bean>