SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307
Framgia Vietnam
 
Scaling out eclipse hono
Scaling out eclipse honoScaling out eclipse hono
Scaling out eclipse hono
dejanb
 
Reliable Messaging /Guaranteed delivery
Reliable Messaging /Guaranteed deliveryReliable Messaging /Guaranteed delivery
Reliable Messaging /Guaranteed delivery
WSO2
 

La actualidad más candente (20)

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

Similar a Understanding and Using Client JBoss A-MQ APIs

f2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middlewaref2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middleware
ndonikristi98
 
HornetQ Presentation On JBoss World 2009
HornetQ Presentation On JBoss World 2009HornetQ Presentation On JBoss World 2009
HornetQ Presentation On JBoss World 2009
jarfield
 

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

Sap webinar-briefing-sep-2013-final
Sap webinar-briefing-sep-2013-finalSap webinar-briefing-sep-2013-final
Sap webinar-briefing-sep-2013-final
 
MQ Support for z/OS Connect
MQ Support for z/OS ConnectMQ Support for z/OS Connect
MQ Support for z/OS Connect
 
REST APIs and MQ
REST APIs and MQREST APIs and MQ
REST APIs and MQ
 
What's new in MQ 9.1.* on z/OS
What's new in MQ 9.1.* on z/OSWhat's new in MQ 9.1.* on z/OS
What's new in MQ 9.1.* on z/OS
 
MQ Guide France - What's new in ibm mq 9.1.4
MQ Guide France - What's new in ibm mq 9.1.4MQ Guide France - What's new in ibm mq 9.1.4
MQ Guide France - What's new in ibm mq 9.1.4
 
Realtime mobile&iot solutions using mqtt and message sight
Realtime mobile&iot solutions using mqtt and message sightRealtime mobile&iot solutions using mqtt and message sight
Realtime mobile&iot solutions using mqtt and message sight
 
f2f-overview12.ppt
f2f-overview12.pptf2f-overview12.ppt
f2f-overview12.ppt
 
f2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middlewaref2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middleware
 
Jbw chicago
Jbw chicagoJbw chicago
Jbw chicago
 
HornetQ Presentation On JBoss World 2009
HornetQ Presentation On JBoss World 2009HornetQ Presentation On JBoss World 2009
HornetQ Presentation On JBoss World 2009
 
InterConnect 2016: What's new in IBM MQ
InterConnect 2016: What's new in IBM MQInterConnect 2016: What's new in IBM MQ
InterConnect 2016: What's new in IBM MQ
 
What's New in IBM Messaging
What's New in IBM MessagingWhat's New in IBM Messaging
What's New in IBM Messaging
 
Riding with camel
Riding with camelRiding with camel
Riding with camel
 
IBM MQ for z/OS The Latest and Greatest Enhancements
IBM MQ for z/OS The Latest and Greatest EnhancementsIBM MQ for z/OS The Latest and Greatest Enhancements
IBM MQ for z/OS The Latest and Greatest Enhancements
 
HP: Implementácia cloudu s HP
HP: Implementácia cloudu s HPHP: Implementácia cloudu s HP
HP: Implementácia cloudu s HP
 
533-MigratingYourMQIApplicationsToJMS.pdf
533-MigratingYourMQIApplicationsToJMS.pdf533-MigratingYourMQIApplicationsToJMS.pdf
533-MigratingYourMQIApplicationsToJMS.pdf
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
 
JUDCon2014-ScalableMessagingWithJBossA-MQ and Apache Camel
JUDCon2014-ScalableMessagingWithJBossA-MQ and Apache CamelJUDCon2014-ScalableMessagingWithJBossA-MQ and Apache Camel
JUDCon2014-ScalableMessagingWithJBossA-MQ and Apache Camel
 
IBM MQ - What's new in 9.2
IBM MQ - What's new in 9.2IBM MQ - What's new in 9.2
IBM MQ - What's new in 9.2
 
IBM What's New in MQ V8
IBM What's New in MQ V8IBM What's New in MQ V8
IBM What's New in MQ V8
 

Más de Kenneth Peeples

Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -
Kenneth Peeples
 
Using Red Hat JBoss Fuse on OpenShift
Using Red Hat JBoss Fuse on OpenShiftUsing Red Hat JBoss Fuse on OpenShift
Using Red Hat JBoss Fuse on OpenShift
Kenneth Peeples
 
Service Lifecycle Management with Fuse Service Works
Service Lifecycle Management with Fuse Service WorksService Lifecycle Management with Fuse Service Works
Service Lifecycle Management with Fuse Service Works
Kenneth Peeples
 
Big Data and Data Virtualization
Big Data and Data VirtualizationBig Data and Data Virtualization
Big Data and Data Virtualization
Kenneth Peeples
 
Fuse Service Works Design Time Governance and S-RAMP
Fuse Service Works Design Time Governance and S-RAMPFuse Service Works Design Time Governance and S-RAMP
Fuse Service Works Design Time Governance and S-RAMP
Kenneth Peeples
 
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Kenneth Peeples
 

Más de Kenneth Peeples (18)

dvprimer-architecture
dvprimer-architecturedvprimer-architecture
dvprimer-architecture
 
dvprimer-concepts
dvprimer-conceptsdvprimer-concepts
dvprimer-concepts
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -
 
Data Virtualization Primer - Introduction
Data Virtualization Primer - IntroductionData Virtualization Primer - Introduction
Data Virtualization Primer - Introduction
 
Connect to the IoT with a lightweight protocol MQTT
Connect to the IoT with a lightweight protocol MQTTConnect to the IoT with a lightweight protocol MQTT
Connect to the IoT with a lightweight protocol MQTT
 
Maximize information exchange in your enterprise with AMQP
Maximize information exchange in your enterprise with AMQPMaximize information exchange in your enterprise with AMQP
Maximize information exchange in your enterprise with AMQP
 
Integration intervention: Get your apps and data up to speed
Integration intervention: Get your apps and data up to speedIntegration intervention: Get your apps and data up to speed
Integration intervention: Get your apps and data up to speed
 
Big data insights with Red Hat JBoss Data Virtualization
Big data insights with Red Hat JBoss Data VirtualizationBig data insights with Red Hat JBoss Data Virtualization
Big data insights with Red Hat JBoss Data Virtualization
 
Using Red Hat JBoss Fuse on OpenShift
Using Red Hat JBoss Fuse on OpenShiftUsing Red Hat JBoss Fuse on OpenShift
Using Red Hat JBoss Fuse on OpenShift
 
Service Lifecycle Management with Fuse Service Works
Service Lifecycle Management with Fuse Service WorksService Lifecycle Management with Fuse Service Works
Service Lifecycle Management with Fuse Service Works
 
SOA Summit 2014
SOA Summit 2014SOA Summit 2014
SOA Summit 2014
 
Big Data and Data Virtualization
Big Data and Data VirtualizationBig Data and Data Virtualization
Big Data and Data Virtualization
 
Simplify your integrations with Apache Camel
Simplify your integrations with Apache CamelSimplify your integrations with Apache Camel
Simplify your integrations with Apache Camel
 
Fuse Service Works Design Time Governance and S-RAMP
Fuse Service Works Design Time Governance and S-RAMPFuse Service Works Design Time Governance and S-RAMP
Fuse Service Works Design Time Governance and S-RAMP
 
JDV Big Data Webinar v2
JDV Big Data Webinar v2JDV Big Data Webinar v2
JDV Big Data Webinar v2
 
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
Peeples authentication authorization_services_with_saml_xacml_with_jboss_eap6
 
Bitmoney Demonstration
Bitmoney DemonstrationBitmoney Demonstration
Bitmoney Demonstration
 
CamelOne 2013 Karaf A-MQ Camel CXF Security
CamelOne 2013 Karaf A-MQ Camel CXF SecurityCamelOne 2013 Karaf A-MQ Camel CXF Security
CamelOne 2013 Karaf A-MQ Camel CXF Security
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

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