Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Pull Event
Stream Pull Event
Stream
Push Event
Stream
AXIOM
Programmatical
Push Event
Creation
Stream
How streaming works ..
<soap:Envelope>
<soap:Header>
<myNS:Security soap:mustUnderstand=“true”>
</myNS:Security>
</soap:Header>
<soap:Body> Build object model to here
<doSomethingCool> h = envelope.getHeader(securityQName)
... MEGABYTES OF DATA HERE ...
</doSomethingCool> ...and then you can do
</soap:Body> body = envelope.getBody();
</soap:Envelope>
reader = body.getXMLStreamReader();
while (reader.hasNext()) {
...
}
Extensible Messaging Engine
It is the “core”
A pure SOAP processor
Not aware of any java web service
specifications (e.g. JAX-RPC)
Contains
A Context Hierarchy
Concept of descriptors and contexts
Phases
The Messaging Engine - Pipe
view
Can be viewed as a pipe
The Messaging Engine - Pipe
view
Engine
XML
Message
Transport
Message
Receiver/ MEP
Client
The Messaging Engine -
Message Exchange Patterns
Describes the exchange pattern of
SOAP messages per given operation.
E.g.
In – Out
In only
In – In – Out !
WSDL 2.0 defines 8 standard MEPs.
The Messaging Engine -
Message Exchange Patterns
(cont..)
Axis2 supports MEPs with the piped model
of the engine
Can be easily extended to support custom
MEPs
Context and Configuration
Hierarchy
Engine is stateless !!
Context and Configuration Hierarchy
maintains Engine State
Context – running state
Configuration – deployment state
Extensible Messaging Engine
The Messaging Engine - Phases
A Descriptor (module.xml)
The Messaging Engine – Detailed
Components View
Engine
Registry
Contexts
Modules
Pluggable Modules (Cont..)
Archived to make a single bundle
Known as a “.mar” file
Concept of Engaging
Engaging a module means activating it
Can be done
Per System
Per Service
Per Operation
Pluggable Modules - Example
The WS-Addressing module
Contains
Addressing-in handler
Placed in the pre-dispatch phase – in pipe
Addressing out handler
Placed in the message-out – out pipe
Improved Deployment Model
Faster and Easier Deployment
Service Archive files (.aar files)
A collection of resources needed for a service
Includes
Service implementation
Handlers (optional)
Module
Framework
Engine Registry
Core
(Modules, Handlers and Phases)
AXIOM
StAX
Engine
XML Tran
Messag sport
e Message
Phase
Phase
Phase
Application
Receiver
X
Z
Engine
Registry
Contexts
Modules
Engine
Registry
Contexts
Modules