
VirtueMart Integration
188
Coming to the integration mechanism, there are various options available. One of the major 
points that we'll have to keep in perspective while choosing an integration technology/
framework is that VirtueMart is implemented in PHP whereas ADempiere is in Java. We are 
running our ADempiere instance on PostgreSQL whereas VirtueMart uses MySQL. Keeping 
this in perspective, we have options like message queues, Web Services, Service Bus, and so 
on. The mechanism you select would be based on the criteria on which we base our overall 
architecture. For demonstration purposes, in this chapter, we will be using JMS for integration 
and we will be using Apache's ActiveMQ implementation of it. It addresses our main design 
constraint—PHP and Java-based application integration—by providing the support for Stomp 
protocol and Stomp-JMS mapping.
In order to follow this chapter, we would have to rst set up the development environment. For 
this purpose, we would need the following additional software to be downloaded and installed 
on the system:
 f Apache ActiveMQ 5.3.2
 f XAMPP: 1.7 or above
 f Joomla!: 1.5
 f VirtueMart 1.1.4
 f Zend Eclipse: latest
Let us see how to set up each one of them and make use of them to provide the required 
integration between ADempiere and VirtueMart.
Setting up the environment
In this recipe, we will go through the steps required to set up the complete environment to 
get started with the integration between ADempiere and VirtueMart. It includes setting up  
the following:
 f Apache ActiveMQ
 f Joomla!
 f VirtueMart
I have excluded the installation of Joomla!, as you may nd documents on the Joomla! website 
or Google it. You may nd one such document, which I had written sometime ago for one of 
the technology magazines, on http://wtcindia.wordpress.com/2009/11/27/build-
your-professional-website-using-joomla-part-1/. 
Say, we refer to the Joomla! 
installation folder by <JOOMLA_HOME>.
Also excluded is the installation and Zend Eclipse setup.