O'Reilly logo

ADempiere 3.6 Cookbook by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building ActiveMQ adapters for ADempiere and VirtueMart

The recipe describes how to build the adapters for ADempiere and VirtueMart, which are the foundations for the integration.

How to do it...

  1. Add<ACTIVEMQ_PATH>\activemq-all-5.3.2.jar to the project libraries.
  2. Create a MQClient.java file, say, in the<ADEMPIERE_SVN>\base\src\compiere\util folder, with the following code:
    package org.compiere.util; import org.apache.activemq.transport.stomp.Stomp; import org.apache.activemq.transport.stomp.StompConnection; import org.apache.activemq.transport.stomp.StompFrame; import org.apache.activemq.transport.stomp.Stomp.Headers.Subscribe; public class MQClient { public static void sendMessage(String messageText) { try { StompConnection connection = new StompConnection(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required