[jboss-user] [Clustering/JBoss] - How to deploy Spring MDP in clustered JBoss environment

hiteshparakh do-not-reply at jboss.com
Mon Jul 14 17:09:29 EDT 2008


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>	

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164329#4164329

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164329



More information about the jboss-user mailing list