IBM WebSphere Application Server V7.0 Feature Pack for Service Component Architecture V1.0.1 IBM WebSphere Application Server V7.0 Feature Pack for Service Component Architecture V1.0.1 JEE integration overview This presentation will cover the overview of JEE integration in the SCA feature pack. Overview Overview JEE integration for SCA allows existing WebSphere® customers to tie into their JEE applications Support for the Open Service Orientated Architecture (OSOA) organizations and JEE Integration for SCA V1.0.0 Specifications The SCA programming model supports Java™ EE integration. As a result, you can take advantage of SCA annotations to enable the Java EE components, such as session beans, message driven beans, or Web components to consume SCA services. By using Java annotations that apply to SCA, you can enable an existing Java EE component so that it is recognized as an SCA component and so that the component can participate in an SCA composite JEE Integration for SCA allows existing WebSphere customers to tie into their JEE applications more naturally and reuse JEE skills providing for a strong value-add for SCA applications deployed in WebSphere. Support for the Open Service Orientated Architecture (OSOA) organizations JEE Integration for SCA V1.00 Specifications demonstrates IBM’s commitment and leadership in Open Programming Initiatives. Overview – Continued Overview – Continued Java EE is the standard for Java-based enterprise applications today Does not define concepts required in SCA Extensibility of component implementation technologies Extensibility of transport and protocol abstractions a notion of cross-application assembly and configuration Java EE is the standard for Java-based enterprise applications today. While it offers a rich set of technologies, it does not define important concepts that are inherently required in service oriented architectures such as · Extensibility of component implementation technologies · Extensibility of transport and protocol abstractions and a notion of cross-application assembly and configuration SCA provides a standardized and extensible assembly language and methodology that can be layered on top of existing component models and runtimes. Programming model Programming model The SCA programming model behavior in JEE components is defined in the OSOA Specification for JEE Integration – Here is an example: package services.accountdata; import javax.ejb.Stateless; import org.osoa.sca.annotations.*; import services.backend.Brokerage; @Stateless // EJB annotation public class AccountServiceImpl implements AccountService { @Reference protected Brokerage backend; // SCA reference @Property protected String currency; // SCA property @Context protected SCAContext context; // SCA context public AccountReport getAccountReport(String customerId) { acctValue BigDecimal = Brokerage.getAccountValue(customerID,“IBM”); // use injected reference if (currency != “US DOLLARS”) { // use injected property moneyChangerService = context.getService(moneyChanger.class,”MoneyExchange”); // use injected context acctValue = moneyChangerService(current,acctValue); // invoke SCA service } return backend(customerId, acctValue); } (*) As documented, by specification, life cycle of this component is managed by JEE rules. This example shows how a JEE component consumes an SCA service by using SCA annotations. Note the use of these annotations: 1. @property - The @Property annotation is used to define an SCA property 2. @Reference - Accessing a service using reference injection is done by defining a field, a setter method parameter, or a constructor parameter typed by the service interface and annotated with an @Reference annotation. 3. @context - The @Context annotation type is used to annotate a Java class field or a setter method that is used to inject a composite context for the component. The type of context to be injected is defined by the type of the Java class field or type of the setter method input argument, the type is either ComponentContext or RequestContext. Summary Summary Section To summarize... Summary Summary SCA programming model supports Java EE integration JEE Integration for SCA allows existing WebSphere customers to tie into their JEE applications more naturally and reuse JEE skills The SCA programming model supports Java EE integration. JEE Integration for SCA allows existing WebSphere customers to tie into their JEE applications more naturally and reuse JEE skills providing for a strong value-add for SCA applications deployed in WebSphere. References References SCA Java EE integration specification: http://www.osoa.org/download/attachments/35/SCA_JAVAEE_Integration_V100.pdf?version=1 IBM Education Assistant http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.wasfpsca/plugin_coverpage.html SCA feature pack information center http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/welcome_nd.html SCA white papers http://www.ibm.com/developerworks/websphere/library/techarticles/0812_beck/0812_beck.html References Feedback Feedback Your feedback is valuable You can help improve the quality of IBM Education Assistant content to better meet your needs by providing feedback. Did you find this module useful? Did it help you solve a problem or answer a question? Do you have suggestions for improvements? Click to send e-mail feedback: mailto:iea@us.ibm.com?subject=Feedback_about_WASv7SCA101_JEE_Integration_Overview.ppt This module is also available in PDF format at: ../WASv7SCA101_JEE_Integration_Overview.pdf You can help improve the quality of IBM Education Assistant content by providing feedback. Trademarks