Академический Документы
Профессиональный Документы
Культура Документы
Agenda
JBoss Middleware Portfolio JBoss EAP Roadmap ActiveMQ in general Why customer needs AMQ integration in JBoss EAP 6 ActiveMQ integration in JBoss EAP 6
Use-cases Q&A
Enterprise Class
TECHNOLOGY - FUSESOURCE
Fuse Enterprise Products
Open source integration platform features: Camel, ActiveMQ, CXF, Karaf and supporting technologies Open source messaging platform features ActiveMQ, Karaf and supporting technologies
Fuse MQ Enterprise
Phase 1 - Today
12
ActiveMQ
Open Source messaging platform Supports JAVA standards (JMS 1.1, JCA 1.5, XA) Reliable, high performance messaging Multi-Topology, Multi-Protocol & Multi-Language support Supports message recovery & pluggable strategy for message storage Provides a flexible & customizable security model through plugins
13
Why Customer needs AMQ RAR integration in JBoss EAP 6 against HornetQ?
AMQ was already a standard messaging platform in their IT HornetQ in JBoss EAP 6 does not support JDBC adapter for message persistence Requirement for an enterprise database for message
store
Need for long term persistence with extreme reliability Need to use SQL Query to find information about MSGs Expertise in the administration of relational database exists
Requirement for creating a redundant master/slave topology of brokers by using a shared databases
14
15
Sun JDK 1.6, 1.7; Open JDK 1.6.x; IBM JDK 1.6.x
ActiveMQ 5.7.0-fuse-71-047
based on JBoss AS7.1.3 ORACLE, MySQL
Database
16
18
http://repo.fusesource.com/nexus/content/groups/public/org/apache/activemq/
cp tmp/brocker-config.xml JBEAP6_HOME
rm tmp/brocker-config.xml
19
http://repo.fusesource.com/nexus/content/groups/public/org/apache/activemq/apa che-activemq/5.7.0.fuse-71-047/apache-activemq-5.7.0.fuse-71-047-bin.zip
UNZIP the file apache-activemq-5.7.0.fuse-71-047-bin.zip in a tmp folder CREATE a folder called 5.7.0.fuse-71-047
mkdir JBEAP6_HOME/modules/org/apache/activemq/5.7.0.fuse-71-047
COPY the 3 files (activeio-core-3.1.4.jar;commons-dbcp-1.4.jar;commons-pool1.6.jar) from /tmp/apache-activemq-5.7.0.fuse-71-047/lib/optional into the new folder COPY all required JDBC drivers into the new folder 5.7.0.fuse-71-047
cp mysql-connector-java-5.1.22-bin.jar JBEAP6_HOME/modules/org/apache/activemq/5.7.0.fuse-71-047
CREATE a file called module.xml into 5.7.0.fuse-71-047. This file will define all dependencies JAR files required by AMQ RAR to start successfully and to connect to Database storage you choose
touch module.xml
20
21
Specifiy the new module and version, so that module can be identified by the classloader Locate tmp/META-INF/MANIFEST.MF and edit and add the dependency on activemq module Dependencies: org.apache.activemq:5.7.0.fuse-71-047
zip -R ../../changed-rar/cust-activemq-rar-5.7.0-fuse-71-047.rar *
COPY the customized RAR file in the deployments folder of the JBEAP6 standalone server
cp cust-activemq-rar-5.7.0-fuse-71-047.rar JBEAP6_HOME/standalone/deployments/
22
23
24
STEP 6 - Test
./standalone.sh -c standalone-amq570.fuse71.xml
13:46:38,203 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "cust-activemq-rar-5.7.0-fuse-71-047.rar" 13:46:41,653 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-1) JBAS010406: Registered connection factory java:jboss/exported/ConnectionFactory 13:46:41,677 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-1) JBAS010405: Registered admin object at java:/queue/MyAMQueue2 13:46:41,686 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-2) JBAS010401: Bound JCA AdminObject [java:/queue/MyAMQueue2] 13:46:41,688 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4) JBAS010401: Bound JCA ConnectionFactory [java:jboss/exported/ConnectionFactory] 13:46:41,848 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.1.GA (AS 7.1.3.Final-redhat-4) started in 22569ms - Started 198 of 281 services (82 services are passive or on-demand)
25
Use-Case #1 AMQ JCA & Queues in EAP 6 and JMS clients are deployed in the container
26
Use-Case #2 AMQ JCA & Queues in EAP 6 and JMS clients made remote connection to the queues a serializable connection factory
27
Use-Case #3 AMQ RAR JCA in EAP 6, Queues/Topics setup is out of the Container
28
Thank You