Use Java annotations for Service Component Architecture (SCA) to identify existing Java Platform, Enterprise Edition (Java EE) components, such as session beans, as SCA components that are a part of an SCA composite.
Identify and obtain the session beans that represent your business logic that you want to enable within an SCA environment.
The SCA programming model supports Java EE integration. As a result, you can take advantage of SCA annotations to enable Java EE Web components such as session beans to consume SCA services. By using Java annotations that apply to SCA, you can enable existing session beans to be recognized as an SCA component and participate in an SCA composite. Within Java EE environments, sessions beans encapsulate business logic to manage security, transactions, and remotable interfaces. Because service components within SCA environments play a similar role, you can take advantage of the capability to use session beans as a service component implementation in a Java EE environment.
Any session bean that serves as the implementation type of an SCA service component can use annotations to obtain an interface to the SCA services that are wired to the component by the SCA assembly. You can also use annotations when you want to obtain the value of a property using the @Property annotation, to inject a handle to the SCA component context using the @Context annotation or to obtain the component name using the @ComponentName annotation. When using SCA annotations, you must apply the injection using annotations after the session bean instance is created, but before invoking business methods on the bean instance.
For a list of supported annotations for session beans, see the SCA specifications and APIs documentation.
You now have SCA-enabled Java EE session beans that take advantage of the SCA programming model.
Deploy the components to a business-level application.
In this information ...Related tasks
Related reference
| IBM Redbooks, demos, education, and more(Index) |