have a spring based application and I want to initialize a message producer in the spring beans configuration file to send the messages. I cannot use JMS template to send the messages. So i want to initialize a message producer in spring beans file that can be used to send messages. But I cant find any implementation of Messageproducer in Spring 3.x and cant find how to initialize the Message producer through spring beans configuration file. I tried something like this shown below. A part of the configuration file to intialize MessageProducer :-
<bean id="connection" class="org.springframework.jms.JmsConnectionFactor yBean">
<property name="connectionFactory"><ref bean="connectionFactory"/></property>
</bean>
<bean id="jmsSession" class="org.springframework.jms.JmsSessionFactoryBe an">
<property name="connection"><ref bean="connection"/></property>
</bean>
<bean id="producer" class="org.springframework.jms.JmsProducerFactoryB ean">
<property name="session"><ref bean="jmsSession"/></property>
<property name="destination"><ref bean="senderDestination"/></property>
</bean>
But these API's are not supported in spring 3.x. Any help would be appreciated.
Regards


Reply With Quote
