6
comme titre de la question, comment configurer jms template au printemps pour weblogic?comment configurer jms template au printemps pour weblogic?
i suivre un exemple à un site Web, mais le printemps se plaignent toujours de DefaultDestination à JmsTemplate
comment configurer correctement?
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://localhost:7001</prop>
</props>
</property>
</bean>
<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="jndiName" value="jms/confactory" />
</bean>
<bean id="jmsDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="cache" value="true" />
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destinationResolver" ref="jmsDestinationResolver" />
</bean>
nb: j'utilise weblogic 9.2 pour jms & serveur web, le printemps 2.5.6
Le haricot 'de destination' peut également besoin de l'ensemble de propriétés 'jndiTemplate', comme c'est le cas pour' connectionFactory' et 'jmsDestinationResolver'. –