Java Reference
In-Depth Information
On the other hand, if you are planning to connect different business partners (for
example, Java and .NET applications), or you are simply building a new system
from scratch with no clear interactions defined, it would be better to use web ser-
vices for transport and connection.
We will learn more about web services in the Chapter 8 , Adding Web Services
to Your Applications , which should provide you with a quite complete overview of
your EAI alternatives.
A real-world example - HornetQ and ActiveMQ
integration
In this section we will provide an example scenario, which includes an external com-
ponent such as Apache ActiveMQ (Apache 2.0 open source licensed) message
broker that fully implements the Java Message Service 1.1 (JMS).
Within the ActiveMQ message broker, we have configured a JMS queue named
TicketQueue , which can be used to buy our tickets from another Java EE web ap-
plication deployed on Apache Geronimo:
In order to run this example, we would need to pick up the ActiveMQ resource
adapter, activemq-rar-5.7.0.rar , which can be downloaded from the Maven
repository at http://repo1.maven.org/maven2/org/apache/activemq/activemq-rar/
5.7.0/ .
Installing the ActiveMQ resource adapter
Resource adapters ( .rar ) can be deployed either using JBoss management instru-
ments or, for standalone servers, by copying the resource adapter into the deploy-
ments directory. Before doing that, we need to configure the Resource Adapter in
your server configuration. This can be done by adding the configuration in the JCA
Search WWH ::




Custom Search