Quantcast
Channel: Spring Community Forums - JMS
Viewing all articles
Browse latest Browse all 51

Active MQ - Ack on successfully posting a message onto the Queue/Topic

$
0
0
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.

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" />

Properties -
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

Regards,
PD

Viewing all articles
Browse latest Browse all 51

Latest Images

Trending Articles



Latest Images