cancel
Showing results for 
Search instead for 
Did you mean: 

How to create JMS extesion and integrate it with hybris.

Former Member
0 Kudos

How to create JMS extesion and integrate it with hybris. Please let me know if any links available for this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Regards
Former Member
0 Kudos

Thanks

I am looking for complete steps if I have to create a queue and call that queue from my storefront and get the message back to the storefront. Is there anything from where I can get this help.

Regards, Harleen

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks a lot

Answers (2)

Answers (2)

former_member184944
Participant
0 Kudos

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.

Former Member
0 Kudos

Hi Anumeha, even I have the same requirement, can you please let me know what design steps you followed?

Former Member
0 Kudos

How to make the Messagelistener wait till hybris server is started?