Hi Team,
Have a scenario where in i need to check that the message was posted successfully onto the Destination Queue/Topic using ActiveMQ.
Below mentioned is the JMS configuration , appreciate if somebody could guide me achieve an acknowledgement kind of functionality, from the destination Queue/Topic.
Properties -
Regards,
PD
Have a scenario where in i need to check that the message was posted successfully onto the Destination Queue/Topic using ActiveMQ.
Below mentioned is the JMS configuration , appreciate if somebody could guide me achieve an acknowledgement kind of functionality, from the destination Queue/Topic.
Code:
<!-- Inbound Connection Factory -->
<bean id="inboundJmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="${int.actmq.jms.connectionfactory}" />
</bean>
<!-- jms:message-driven-channel-adapter - Defines a JMS Message-Driven inbound
Channel Adapter -->
<int-jms:message-driven-channel-adapter
connection-factory="inboundJmsFactory" destination-name="${int.jms.inbound.queue}"
channel="com.hcl.jms.inbound" extract-payload="true" />
<!-- Outbound Connection Factory -->
<bean id="outboundJmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="${int.actmq.jms.connectionfactory}" />
</bean>
<!-- jms:outbound-channel-adapter - Defines an outbound JMS Message-sending
Channel Adapter -->
<int-jms:outbound-channel-adapter
destination-name="${int.jms.outbound.queue}" connection-factory="outboundJmsFactory"
channel="com.hcl.jms.outbound" extract-payload="true" />
Code:
int.actmq.jms.connectionfactory=tcp://localhost:61616
int.jms.outbound.queue=com.hcl.messaging.outbound.queue
int.jms.inbound.queue=com.hcl.messaging.inbound.queue
PD