Solving Integration Problems Using Patterns
Solving Integration Problems Using Patterns
Messaging Endpoints
Messaging Gateway: a class than wraps messaging-
specific method calls and exposes domain-specific
methods to the application.
Messaging Mapper: creates a mapping logic between Requirements –
the messaging infrastructure and the domain objects. Business Processes
Transactional Client: make the client’s session with Take Orders
the messaging system transactional so that the client
Customers can place orders via Web, phone or fax
can specify transaction boundaries.
Process Orders
Polling Consumer: explicitly makes a call when it
Processing an order involves multiple steps,
including verifying inventory, shipping the goods
and invoicing the customer
Check Status Second Requirement
Customers can check the order status Integration Solution – Set of Patterns for the
Change Address requirements:
Customers can use a Web front-end to change their Message
billing and shipping address Document Message
New Catalog Channel
The suppliers update their catalog periodically. Point-to-Point Channel
WGRUS needs to update its pricing and availability Channel Adapter
based in the new catalogs.
Announcements Third Requirement
Customers can subscribe to selective Integration Solution – Set of Patterns for the
announcements from WGRUS. requirements:
Testing and Monitoring Message
The operations staff needs to be able to monitor all Document Message
individual components and the message flow Channel
between them.
Point-to-Point Channel
Channel Adapter
Take Orders and Process Orders
Fourth Requirement
Integration Solution – Set of Patterns for the
requirements:
Message
Document Message
Channel
Requirements – Business Processes Datatype Channel
Identified Requirements:
- Interactions between Develop Integration
1 and 4 Solutions for Process Orders
2 and 5
3 and 6
4, 5, 6 and 7
Identifying Integration
Requirements: Look for
change in Performers. Performers are application
that are supporting a specific activity within a
process
First Requirement
Integration Solution – Set of Patterns for the
requirements:
Message
Document Message or Event Message
Document message
would be best fit
Channel
Point-to-Point
Channel
Endpoint
Messaging Gateway