You can use an existing Java™ Platform, Enterprise Edition (Java EE) application as a Service Component Architecture (SCA) component after enhancing the application. Define an SCA composite that has components with implementation.ejb and implementation.web component types which refer to Enterprise JavaBeans™ (EJB) and Web modules within the Java EE application, and then promote services and references.
Identify the Java EE application that contains business logic in EJB or Web modules to enable in the SCA environment.
A Java EE application is also called an enterprise application or enterprise archive (EAR) file.
The SCA programming model supports Java EE integration. You can expose EJB stateless session beans as SCA services by enabling an existing enterprise application module to be recognized as an SCA component and participate in an SCA composite. You can rewire the SCA services over different bindings. You can rewire EJB references in EJB and Web modules to SCA references. Also, you can use SCA annotations to enable Java EE components such as stateless session beans, message driven beans, servlets, listeners, filters, and JavaServer Pages (JSP) files to consume SCA services and properties.
Define a composite in a file named application.composite and place the file in the enterprise application META-INF directory.
The enterprise application is available as an SCA component type. Any SCA component can refer to the promoted services. Java EE modules can access SCA services and properties using SCA annotations. You can rewire the services and reference them like any other SCA service.
Deploy the enterprise application and the SCA composite that uses the application as composition units of the same business-level application. You can use the administrative console or wsadmin commands to create the business-level application and add the enterprise application and the SCA composite as composition units.
The product provides the HelloJee sample. The sample has an SCA enhanced EJB. If you selected to install Samples during creation of a profile enabled by the feature pack, the product adds several SCA sample files to the app_server_root/samples/SCA and app_server_root/installableApps directories. For details on deploying the HelloJee sample, refer to app_server_root/samples/SCA/HelloJee/documentation/readme.html. Also, the Example section in the Using existing Java EE modules and components as SCA implementations topic summarizes how to deploy the HelloJee sample and access the SCA enhanced EJB.
In this information ...Related tasks
Related reference
| IBM Redbooks, demos, education, and more(Index) |