2 Replies Latest reply on Jul 14, 2008 5:05 PM by hiteshparakh

    HA JMS

    afshanz

      Hi ,
      I would like to know how to set up the HA JMS in publisher side and subscriber side. I bought the JBoss document but they do not talk about HAJMS but there is diagram that shows HA JMS.

      Thanks
      Afshan

        • 1. Re: HA JMS
          anil.saldhana
          • 2. HA JNDI & Spring
            hiteshparakh

            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>



            Please guide me to deploy this in clustered environment.