This document provides an introduction to the Java Connector Architecture (JCA) and Message-Driven Beans (MDBs). It explains that JCA enables integration between systems and is the base for Java EE servers. It also outlines how MDBs are used to listen for inbound messages from JCA resource adapters. Programming with JCA often involves using provided resource adapters to manage connections and transactions. Message listeners are implemented with MDBs rather than session beans. Payara Micro uses JCA adapters to connect systems on cloud platforms like Apache Kafka and Amazon SQS.
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Intro to JCA and MDB
1. Introduction to
JCA and MDB
HASUNUMA Kenji
GlassFish Users Group Japan
k.hasunuma@coppermine.jp
Twitter: @khasunuma
2. What's JCA?
• JCA (Java Connector Architecture)
brings integration between systems
• JCA is also base of Java EE servers
• Almost Java EE developer have been
used JCA
3. JCA Overview
External
System
(e.g. EIS)
Java EE
Resource
Adapter
(.rar)
Web app.
(.war)
Outbound
Inbound
Java Connector
Architecture (JCA)
9. Programming w/JCA
• Many cases, JCA resource adapter is
provided by each systems
• Recently JCA is mainly used to
manage message inflow
• In JCA 1.7 (Java EE 7/8), properties
are set by annotations
11. Attention
• Session Bean SHOULD NOT be used
to listen messages
• SHOULD use Message Driven Bean
(MDB) to listen messages
12. What's MDB?
• EJB specified for listening messages
• Have a callback method and handle
inbound messages provided by JCA
• MDB adapts both async and sync
communication
14. Use case: Payara Micro
• Payara Micro connects other systems
on cloud via JCA adapters;
• Apache Kafka
• MQTT (Mosquitto, etc.)
• Amazon SQS
• Microsoft Azure Service Bus
15. Why MQ?
• System/service requirements are
different each other
• Now various systems/services are
integrated on cloud platforms
• MQ (i.g. Async) often resolves
impedance matching between each
systems/services
16. JCA is ...
• JCA (Java Connector Architecture)
brings integration between systems
• JCA is also base of Java EE servers,
e.g. JMS, JDBC
• Almost Java EE developer have been
used JCA as JDBC data source
17. Introduction to JCA and MDB
HASUNUMA Kenji
GlassFish Users Group Japan
k.hasunuma@coppermine.jp
Twitter: @khasunuma