文档介绍:Building Service-
Oriented Architectures
With Java™ 2
Platform, Enterprise java./javaone/sf
Edition (J2EE™)
Ted Farrell
Chief Architect, Application Development
Oracle Corporation
1 | 2004 JavaOneSM Conference | Session TS-2941
Agenda
Service-Oriented Architectures
SOA on the J2EE™ Platform
Best Practices
Demonstration
Q&A
2 | 2004 JavaOneSM Conference | Session TS-2941
Service-Oriented Architectures
• Decouple architecture from implementation
─ Loosely-coupled interfaces
─ Multi- channel access across different tiers
• Process-oriented vs. component-based
• Orchestration
─ Process flow between services
─ Data mapping/transformation
• Evolving business models
─ Technology changes and new business requirements
─ Continuous small changes vs. sporadic large ones
3 | 2004 JavaOneSM Conference | Session TS-2941
Benefits of SOA
• Better reuse
─ Build new client functionality on top of
existing Business Services
• Well-defined interfaces
─ Make changes without affecting clients
• Easier maintainability
─ Changes/versions are not all-or-nothing
• Better flexibility
4 | 2004 JavaOneSM Conference | Session TS-2941
SOA Across the Enterprise
receive
FLOW
get props get order
get desc.
reply
SCOPE
receive
FLOW
send msg ship order
reply
Business
Services
5 | 2004 JavaOneSM Conference | Session TS-2941
Service-Oriented Interface
• The interface contract to the service is
implementation-independent
• The service can be dynamically invoked
─ Runtime binding
• The service is self-contained
─ Maintains its own state
• Examples
─ Web Services
─ WSRP
─ Data Control (JSR 227)
6 | 2004 JavaOneSM Conference | Session TS-2941
Web Service
• WSDL for definition
• SOAP for protocol
• UDDI for lookup
• True implementation and OS independence
7 | 2004 JavaOneSM Conference | Session TS-2941
Business Process Execution
Language (BPEL)
• WSDL for definition
─ High-