on 11-24-2014 8:02 AM
How to create JMS extesion and integrate it with hybris. Please let me know if any links available for this.
Hi
If you are creating a storefront and want to integrate JMS with it. Then follow the following steps
Create a spring-jms-config.xml inside hybris\bin\custom\XYZ\XYZstorefront\web\webroot\WEB-INF\config
It should have
Hi
If you are creating a storefront and want to integrate JMS with it. Then follow the following steps
Create a spring-jms-config.xml inside hybris\bin\custom\XYZ\XYZstorefront\web\webroot\WEB-INF\config
It should have
<?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:util="http://www.springframework.org/schema/util"
xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd
http://www.springframework.org/schema/jms
http://www.springframework.org/schema/jms/spring-jms-3.1.xsd">;
<bean id="consumerMessageListener" class="abc.SimpleMessageListener" >
</bean>
<bean id="klaretsJmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://broker:61616" />
</bean>
<jms:listener-container concurrency="10" connection-factory="abcJmsFactory" destination-type="queue">
<jms:listener destination="ProductSyncHybris" ref="consumerMessageListener" method="onMessage"/>
</jms:listener-container>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory">
<ref local="abcJmsFactory" />
</property>
</bean>
</beans>
and then integrate the same by making entry in web-application-config.xml -
and then integrate the same by making entry in web-application-config.xml -
Hope this helps
RegardsYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Harleen
You need to have a messaging product like Active MQ etc in which you can create queues. My suggestion is look on the net for example of how to work with Active MQ and Spring integration. Same applies here. There is no inbuild support for JMS integration. You have to use the same old trick of Spring.
Regards
Hello , I have a requirement for JMS integration with Hybris commerce in my current project. Can you please share a step by step process to achieve the same. I am very new to hybris. Looking forward to your reply. Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to make the Messagelistener wait till hybris server is started?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.