SlideShare a Scribd company logo
Understanding and using JBoss
A-MQ 6.1 and client APIs
Kenneth Peeples, Technical Marketing Manager
2 RED HAT
Abstract
In a fast-paced world, you need a messaging platform that makes it easy and safe for
enterprise applications to exchange information. Red Hat® JBoss® A-MQ is a high
performance, flexible, cost-effective messaging platform that delivers information safely
and reliably with a small footprint.
Red Hat JBoss A-MQ clients can connect to a broker using a variety of transports and
APIs. The connections are highly configurable and can be tuned for the majority of use
cases. Multi-protocol support (JMS 1.1, TCP, SSL, STOMP, NMS) and multi-client support
(Java, C, C++) enables real-time messaging with all enterprise assets.
Join this webinar to explore:
 An introduction to JBoss A-MQ 6.1.
 An introduction to JBoss client APIs.
 A demo using the different client APIs, including the Qpid JMS client API.
JBOSS A-MQ 6.1 INTRODUCTION
4 RED HAT
Join the Red Hat JBoss Developer Program Today
 Sign up for your
Account now at
JBoss.org
 Download JBDS
 Download A-MQ
 Get Productive!
5 RED HAT
Developer Program Benefits
 Access to Enterprise Binaries
 Access to Enterprise Developer Forums
 Exclusive Enterprise Content
6 RED HAT
JBoss Fuse and A-MQ 6.1
Red Hat JBoss Integration Product Line
7 RED HAT
JBoss Fuse and A-MQ 6.1
 Full support for AMQP 1.0 and support for MQTT spec enabled
Internet-of-Things (IOT)
 Vast library of connectors
 Ability to manage
integration processes
 Improved High-availability
 Integration and messaging
in the cloud
Extend and simplify the
enterprise integration
capabilities for easier
cloud, hybrid and Internet-
of-Things integration
8 RED HAT
Red Hat JBoss A-MQ 6.1
Enables integration everywhere for a real-time enterprise
9 RED HAT
Red Hat JBoss A-MQ 6.1 – ActiveMQ 5.9
 Runtime configuration – XML selected changes
will apply to a running broker
 Replicated LevelDB
 Camel Broker Component
 MQTT over WebSockets
 Unified Management Console based on Hawtio
replaces WebConsole
10 RED HAT
A-MQ and the Internet-of-Things (IoT)
What is our differentiator?
Universal connectivity and a cost effective solution!
11 RED HAT
JBOSS A-MQ 6.1 CLIENT
CONNECTIVITY INTRODUCTION
13 RED HAT
JBoss A-MQ - Transports and Protocols
 OpenWire (Default) over TCP/SSL/HTTP(S)/UDP/IP
 STOMP
 Multicast
 MQTT
 AMQP
 REST
 Ajax
 VM Transport
 Dynamic Discovery
 Fanout Protocol
 Peer Protocol
14 RED HAT
JBoss A-MQ – Client APIs
 Native JMS
 Native C++
 Native .NET
 Qpid JMS
 REST
15 RED HAT
JBoss A-MQ - Configuration
There are two types of properties that effects client
connections:
 transport
 destination
16 RED HAT
JBoss A-MQ – Native ActiveMQ Client APIs
Establishing a connection between a messaging client and a
message broker:
1. Get an instance of the connection factory.
2. Use the connection factory to create a connection.
3. Get an instance of the destination used for sending or
receiving messages.
4. Use the connection to create a session.
5. Use the session to create the message consumer or
message producer.
6. Start the connection.
17 RED HAT
JBoss A-MQ – Native Client APIs
 Native JMS Client API - standard JMS APIs to interact
with the message broker
 Native C++ Client API – JMS-like API for C++ for
interfacing with Message Brokers
 Native .NET Client API - provides a standard .NET
interface to Messaging Systems through a JMS style
API
18 RED HAT
JBoss A-MQ – Qpid JMS Client API
The Advanced Message Queuing Protocol (AMQP) is an open standard
messaging system
The key features of AMQP are:
 Open standard (defined by the OASIS AMQP Technical Committee)
 Defines a wire protocol
 Defines APIs for multiple languages (C++, Java)
 Interoperability between different AMQP implementations
19 RED HAT
JBoss A-MQ – REST API
The REST API provides a simple HTTP-based protocol that
enables you to interact with the message broker using HTML
forms and DHTML scripts.
The following servlets implement REST API:
 message servlet
 queueBrowse servlet
20 RED HAT
JBoss A-MQ – Intra-JVM Connections
Red Hat JBoss A-MQ uses a VM transport to
allow clients to connect to each other inside
the Java Virtual Machine (JVM) without the
overhead of network communication.
DEMONSTRATIONS
22 RED HAT
Native JMS Client Demonstration
Step 1: Open a terminal
Step 2: Change to the extras directory of A-MQ
Step 3: Run java –jar mq-client.jar producer –user
admin –password admin
Step 4: Run java –jar mq-client.jar consumer –user
admin –password admin
23 RED HAT
INSERT SCREEN SHARE
24 RED HAT
.NET Client Demonstration
Step 1: Download NMS
Step 2: Download VS Express Desktop
Step 3: Create a VB Console Project
Step 4: Create a VB Module
Step 5: Add References (Apache.NMS and Apache.NMS.ActiveMQ)
Step 6: Run Project
25 RED HAT
INSERT SCREEN SHARE
26 RED HAT
AMQP Client Demonstration
Step 1: Clone https://github.com/FuseByExample/activemq-amqp-
example
Step 2: Add the transport
<transportConnector name=“amqp” uri=“amqp://0.0.0.0:5672”/>
Step 3: Modify pom.xml
<activemq.version>5.9.0.redhat-610379</activemq.version>
Step 4: Modify jndi.properties under resources
amqp://amqpuser:secret@localhost/test/?brokerlist=‘tcp://localhost
:5672’
Step 5: mvn –P consumer
Step 6: mvn –P producer
27 RED HAT
INSERT SCREEN SHARE
Q&A
Try JBoss A-MQ – jboss.org/products/amq

More Related Content

PDF
London JBUG - Connecting Applications Everywhere with JBoss A-MQ
PDF
Resilient Enterprise Messaging with JBoss A-MQ - DevNation 2014
PDF
Deploying JBoss A-MQ in a high availability (HA) environment
PPT
Connecting applicationswitha mq
PPS
Mq Talk
PPTX
Jboss Fuse Workshop 101 part 1
PPTX
Inf net2227 heath
PDF
Messaging for the cloud
London JBUG - Connecting Applications Everywhere with JBoss A-MQ
Resilient Enterprise Messaging with JBoss A-MQ - DevNation 2014
Deploying JBoss A-MQ in a high availability (HA) environment
Connecting applicationswitha mq
Mq Talk
Jboss Fuse Workshop 101 part 1
Inf net2227 heath
Messaging for the cloud

What's hot (20)

PDF
Taking Your Enterprise to the Next Level with WSO2 Message Broker and WSO2 En...
PDF
Connecting Applications Everywhere with ActiveMQ
ODP
JMS and ActiveMQ - VuNV 201307
PDF
Viktor Chesnokov "Asynchronous Messaging in Distributed Systems with Akka"
PDF
LINE's Infrastructure Platform: How It Scales Massive Services and Maintains ...
PPTX
Varnish High Availability
PDF
ODP IPsec lookaside API Demo
PPTX
NIC - Hybrid Cloud with NVGRE - Level 400
PDF
Rabbit mq簡介(上)
PDF
ConférenSquad #4 - Hulu et DASH par Baptiste Coudurier
PPTX
Where is my MQ message on z/OS?
PDF
WSO2Con USA 2015: An Introduction to the WSO2 Integration Platform
PDF
QsNetIII, An HPC Interconnect For Peta Scale Systems
PDF
Scaling out eclipse hono
PDF
Reliable Messaging /Guaranteed delivery
PPTX
Varnish extend
PDF
Messaging for IoT
PDF
Publishing Microservices Applications
PPTX
Paris Video Tech - 1st Edition: Streamroot, Adaptive Bitrate Algorithms: comm...
ODP
IBM Impact session CICS & java a tale of liberty
Taking Your Enterprise to the Next Level with WSO2 Message Broker and WSO2 En...
Connecting Applications Everywhere with ActiveMQ
JMS and ActiveMQ - VuNV 201307
Viktor Chesnokov "Asynchronous Messaging in Distributed Systems with Akka"
LINE's Infrastructure Platform: How It Scales Massive Services and Maintains ...
Varnish High Availability
ODP IPsec lookaside API Demo
NIC - Hybrid Cloud with NVGRE - Level 400
Rabbit mq簡介(上)
ConférenSquad #4 - Hulu et DASH par Baptiste Coudurier
Where is my MQ message on z/OS?
WSO2Con USA 2015: An Introduction to the WSO2 Integration Platform
QsNetIII, An HPC Interconnect For Peta Scale Systems
Scaling out eclipse hono
Reliable Messaging /Guaranteed delivery
Varnish extend
Messaging for IoT
Publishing Microservices Applications
Paris Video Tech - 1st Edition: Streamroot, Adaptive Bitrate Algorithms: comm...
IBM Impact session CICS & java a tale of liberty
Ad

Similar to Understanding and Using Client JBoss A-MQ APIs (20)

ODP
Sap webinar-briefing-sep-2013-final
PDF
MQ Support for z/OS Connect
PPTX
REST APIs and MQ
PDF
What's new in MQ 9.1.* on z/OS
PPT
RabbitMQ Protocol Essentials - Introduction for beginners
 
PDF
MQ Guide France - What's new in ibm mq 9.1.4
PDF
Realtime mobile&iot solutions using mqtt and message sight
PPT
f2f-overview1-presentation about rabbitmq and middleware
PPT
f2f-overview12.ppt
ODP
Jbw chicago
ODP
HornetQ Presentation On JBoss World 2009
PDF
InterConnect 2016: What's new in IBM MQ
PDF
What's New in IBM Messaging
PPT
Riding with camel
PDF
IBM MQ for z/OS The Latest and Greatest Enhancements
PPTX
HP: Implementácia cloudu s HP
PDF
533-MigratingYourMQIApplicationsToJMS.pdf
PPTX
CC-11 Part b Software as a Service Cloud Architecxture
PDF
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
PPTX
JUDCon2014-ScalableMessagingWithJBossA-MQ and Apache Camel
Sap webinar-briefing-sep-2013-final
MQ Support for z/OS Connect
REST APIs and MQ
What's new in MQ 9.1.* on z/OS
RabbitMQ Protocol Essentials - Introduction for beginners
 
MQ Guide France - What's new in ibm mq 9.1.4
Realtime mobile&iot solutions using mqtt and message sight
f2f-overview1-presentation about rabbitmq and middleware
f2f-overview12.ppt
Jbw chicago
HornetQ Presentation On JBoss World 2009
InterConnect 2016: What's new in IBM MQ
What's New in IBM Messaging
Riding with camel
IBM MQ for z/OS The Latest and Greatest Enhancements
HP: Implementácia cloudu s HP
533-MigratingYourMQIApplicationsToJMS.pdf
CC-11 Part b Software as a Service Cloud Architecxture
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
JUDCon2014-ScalableMessagingWithJBossA-MQ and Apache Camel
Ad

More from Kenneth Peeples (18)

PDF
dvprimer-architecture
PDF
dvprimer-concepts
PDF
Data Virtualization Primer -
PDF
Data Virtualization Primer - Introduction
ODP
Connect to the IoT with a lightweight protocol MQTT
PDF
Maximize information exchange in your enterprise with AMQP
PPT
Integration intervention: Get your apps and data up to speed
PPT
Big data insights with Red Hat JBoss Data Virtualization
ODP
Using Red Hat JBoss Fuse on OpenShift
PDF
Service Lifecycle Management with Fuse Service Works
PDF
SOA Summit 2014
PDF
Big Data and Data Virtualization
PPT
Simplify your integrations with Apache Camel
ODP
Fuse Service Works Design Time Governance and S-RAMP
PPTX
JDV Big Data Webinar v2
PDF
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
ODP
Bitmoney Demonstration
PDF
CamelOne 2013 Karaf A-MQ Camel CXF Security
dvprimer-architecture
dvprimer-concepts
Data Virtualization Primer -
Data Virtualization Primer - Introduction
Connect to the IoT with a lightweight protocol MQTT
Maximize information exchange in your enterprise with AMQP
Integration intervention: Get your apps and data up to speed
Big data insights with Red Hat JBoss Data Virtualization
Using Red Hat JBoss Fuse on OpenShift
Service Lifecycle Management with Fuse Service Works
SOA Summit 2014
Big Data and Data Virtualization
Simplify your integrations with Apache Camel
Fuse Service Works Design Time Governance and S-RAMP
JDV Big Data Webinar v2
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Bitmoney Demonstration
CamelOne 2013 Karaf A-MQ Camel CXF Security

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
KodekX | Application Modernization Development
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
KodekX | Application Modernization Development
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Dropbox Q2 2025 Financial Results & Investor Presentation

Understanding and Using Client JBoss A-MQ APIs

  • 1. Understanding and using JBoss A-MQ 6.1 and client APIs Kenneth Peeples, Technical Marketing Manager
  • 2. 2 RED HAT Abstract In a fast-paced world, you need a messaging platform that makes it easy and safe for enterprise applications to exchange information. Red Hat® JBoss® A-MQ is a high performance, flexible, cost-effective messaging platform that delivers information safely and reliably with a small footprint. Red Hat JBoss A-MQ clients can connect to a broker using a variety of transports and APIs. The connections are highly configurable and can be tuned for the majority of use cases. Multi-protocol support (JMS 1.1, TCP, SSL, STOMP, NMS) and multi-client support (Java, C, C++) enables real-time messaging with all enterprise assets. Join this webinar to explore:  An introduction to JBoss A-MQ 6.1.  An introduction to JBoss client APIs.  A demo using the different client APIs, including the Qpid JMS client API.
  • 3. JBOSS A-MQ 6.1 INTRODUCTION
  • 4. 4 RED HAT Join the Red Hat JBoss Developer Program Today  Sign up for your Account now at JBoss.org  Download JBDS  Download A-MQ  Get Productive!
  • 5. 5 RED HAT Developer Program Benefits  Access to Enterprise Binaries  Access to Enterprise Developer Forums  Exclusive Enterprise Content
  • 6. 6 RED HAT JBoss Fuse and A-MQ 6.1 Red Hat JBoss Integration Product Line
  • 7. 7 RED HAT JBoss Fuse and A-MQ 6.1  Full support for AMQP 1.0 and support for MQTT spec enabled Internet-of-Things (IOT)  Vast library of connectors  Ability to manage integration processes  Improved High-availability  Integration and messaging in the cloud Extend and simplify the enterprise integration capabilities for easier cloud, hybrid and Internet- of-Things integration
  • 8. 8 RED HAT Red Hat JBoss A-MQ 6.1 Enables integration everywhere for a real-time enterprise
  • 9. 9 RED HAT Red Hat JBoss A-MQ 6.1 – ActiveMQ 5.9  Runtime configuration – XML selected changes will apply to a running broker  Replicated LevelDB  Camel Broker Component  MQTT over WebSockets  Unified Management Console based on Hawtio replaces WebConsole
  • 10. 10 RED HAT A-MQ and the Internet-of-Things (IoT) What is our differentiator? Universal connectivity and a cost effective solution!
  • 12. JBOSS A-MQ 6.1 CLIENT CONNECTIVITY INTRODUCTION
  • 13. 13 RED HAT JBoss A-MQ - Transports and Protocols  OpenWire (Default) over TCP/SSL/HTTP(S)/UDP/IP  STOMP  Multicast  MQTT  AMQP  REST  Ajax  VM Transport  Dynamic Discovery  Fanout Protocol  Peer Protocol
  • 14. 14 RED HAT JBoss A-MQ – Client APIs  Native JMS  Native C++  Native .NET  Qpid JMS  REST
  • 15. 15 RED HAT JBoss A-MQ - Configuration There are two types of properties that effects client connections:  transport  destination
  • 16. 16 RED HAT JBoss A-MQ – Native ActiveMQ Client APIs Establishing a connection between a messaging client and a message broker: 1. Get an instance of the connection factory. 2. Use the connection factory to create a connection. 3. Get an instance of the destination used for sending or receiving messages. 4. Use the connection to create a session. 5. Use the session to create the message consumer or message producer. 6. Start the connection.
  • 17. 17 RED HAT JBoss A-MQ – Native Client APIs  Native JMS Client API - standard JMS APIs to interact with the message broker  Native C++ Client API – JMS-like API for C++ for interfacing with Message Brokers  Native .NET Client API - provides a standard .NET interface to Messaging Systems through a JMS style API
  • 18. 18 RED HAT JBoss A-MQ – Qpid JMS Client API The Advanced Message Queuing Protocol (AMQP) is an open standard messaging system The key features of AMQP are:  Open standard (defined by the OASIS AMQP Technical Committee)  Defines a wire protocol  Defines APIs for multiple languages (C++, Java)  Interoperability between different AMQP implementations
  • 19. 19 RED HAT JBoss A-MQ – REST API The REST API provides a simple HTTP-based protocol that enables you to interact with the message broker using HTML forms and DHTML scripts. The following servlets implement REST API:  message servlet  queueBrowse servlet
  • 20. 20 RED HAT JBoss A-MQ – Intra-JVM Connections Red Hat JBoss A-MQ uses a VM transport to allow clients to connect to each other inside the Java Virtual Machine (JVM) without the overhead of network communication.
  • 22. 22 RED HAT Native JMS Client Demonstration Step 1: Open a terminal Step 2: Change to the extras directory of A-MQ Step 3: Run java –jar mq-client.jar producer –user admin –password admin Step 4: Run java –jar mq-client.jar consumer –user admin –password admin
  • 23. 23 RED HAT INSERT SCREEN SHARE
  • 24. 24 RED HAT .NET Client Demonstration Step 1: Download NMS Step 2: Download VS Express Desktop Step 3: Create a VB Console Project Step 4: Create a VB Module Step 5: Add References (Apache.NMS and Apache.NMS.ActiveMQ) Step 6: Run Project
  • 25. 25 RED HAT INSERT SCREEN SHARE
  • 26. 26 RED HAT AMQP Client Demonstration Step 1: Clone https://github.com/FuseByExample/activemq-amqp- example Step 2: Add the transport <transportConnector name=“amqp” uri=“amqp://0.0.0.0:5672”/> Step 3: Modify pom.xml <activemq.version>5.9.0.redhat-610379</activemq.version> Step 4: Modify jndi.properties under resources amqp://amqpuser:secret@localhost/test/?brokerlist=‘tcp://localhost :5672’ Step 5: mvn –P consumer Step 6: mvn –P producer
  • 27. 27 RED HAT INSERT SCREEN SHARE
  • 28. Q&A Try JBoss A-MQ – jboss.org/products/amq