Here is the full code :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jms="http://www.springframework.org/schema/integration/jms"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file-2.0.xsd
http://www.springframework.org/schema/integration/http http://www.springframework.org/schema/integration/http/spring-integration-http-2.0.xsd
http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-file="http://www.springframework.org/schema/integration/file"
xmlns:int-http="http://www.springframework.org/schema/integration/http">
<bean id="pojoService" class="com.asps.integration.ContentEnrich" />
<bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>tcp://localhost:61616</value>
</property>
</bean>
<bean id="outQ" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="queue.demo" />
</bean>
<int-http:inbound-gateway name="/abcd" supported-methods="GET,POST"
mapped-response-headers="Content-Type"
request-channel="requestChannel" id="receiveMessage" />
<int:channel id="requestChannel"></int:channel>
<int:service-activator input-channel="requestChannel"
ref="pojoService" method="enrich">
</int:service-activator>
<jms:outbound-channel-adapter channel="requestChannel"></jms:outbound-channel-adapter>
</beans>