Hi...
with Spring do we need to stop and start the HornetQ server each time to send and receive the messages,am using
spring-jms-beans.xml as follows
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- <bean id="EmbeddedJms" class="org.hornetq.integration.spring.SpringJmsBootstrap" init-method="start" destroy-method="stop"/>-->
<bean id="listener" class="org.hornetq.jms.example.ExampleListener"/>
<bean id="MessageSender" class="org.hornetq.jms.example.MessageSender">
<property name="connectionFactory" ref="ConnectionFactory"/>
<property name="destination" ref="/queue/exampleQueue"/>
</bean>
<bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="ConnectionFactory"/>
<property name="destination" ref="/queue/exampleQueue"/>
<property name="messageListener" ref="listener"/>
</bean>
</beans>
Please clarify this.
Thanks a lot,
Sibani
can you please post your questions in the user forum, this is the dev forum for all discusiion around the development of HornetQ. In answer to your question tho, it would make no sense at all to stop and start the server for every message.