Next >

SCA 1.0 Account Services tutorial

This tutorial demonstrates how to create an SCA 1.0 account services application and run it on WebSphere Application Server. It is an introduction to using the SCA tools. The application you develop simulates a banking application and demonstrates developing SCA applications with the SCA tools. SCA 1.0 applications are applications that conform to the OSOA SCA 1.0 specification.

Learning objectives

In this tutorial you will learn to:
  • Create an SCA project
  • Create an SCA composite
  • Create SCA components
  • Develop Java implementations for SCA components
  • Use the @Reference and @Service SCA annotations in Java implementations
  • Add services and references to components
  • Connect components by wiring
  • Connect references to external sources such as EJBs and Web services
  • Create an SCA contribution
  • Run the SCA application on WebSphere Application Server
  • Create a Web client to test the SCA application
This tutorial is comprised of several lessons that demonstrate how to develop SCA applications with the SCA tools. Brief descriptions of each of the lessons are as follows:
  • Lesson 1: Create an SCA project and set up your workspace: Create an SCA project, import existing resources so they do not need to be redeveloped during the tutorial, and set up your workspace so that the rest of the tutorial can be completed
  • Lesson 2: Creating a composite: SCA applications organize components within composites. In this lesson, create an SCA composite to contain the components you develop in the tutorial.
  • Lesson 3: Develop the SavingAccount component: In the Account Services application, the SavingAccount component handles operations related to savings accounts. This lesson demonstrates creating a component, developing an interface and Java implementation, using SCA annotations, configuring a component with a service and a reference, and connecting a reference to an external EJB by adding an EJB binding to the reference.
  • Lesson 4: Develop the ChequingAccount component: In the Account Services application, the ChequingAccount component handles operations related to chequing accounts. The lesson follows the same development pattern as the developing the SavingAccount component did. But in this lesson, a Web service binding is configured on an SCA reference to connect to an external Web service. Flexibility of access protocols, for example, being able to easily configure access to resources whether they are EJBs or Web services, is a key feature of SCA.
  • Lesson 5: Create the AccountService component from a WSDL file: A WSDL file can be the basis for the development of an SCA component. In this lesson the tools generate an SCA component with a configured service and a skeleton Java implementation based on the operations described in the WSDL file. You will further develop the Java implementation using @Service and @Reference annotations. The AccountService component is the front end for the application that you are developing. It relies on the services provided by the SavingAccount and ChequingAccount components. This lesson demonstrates how to wire references on the AccountService component to the services provided by the other components.
  • Lesson 6: Create and deploy an SCA Contribution: Before an SCA application can be run on WebSphere Application Server, a deployable asset called a contribution must be created. In this lesson you will create an SCA contribution and deploy it to a server instance.
  • Lesson 7: Create a Web client and test the service: Because the Account Service application will be available as a Web service, you will create a simple Web service client to test that the application you developed in this tutorial works correctly.
Restriction: This sample does not run on IBM® WebSphere® Application Server Developer Tools for Eclipse
To complete this tutorial, you will need approximately 90 minutes.

Prerequisites

In order to complete this tutorial from end to end, you must:
  • Have installed the Rational Application Developer 7.5.5 or later
  • Have installed the IBM WebSphere Application Server Version 7.0 Test Environment v7.0.0.7 or later including the feature pack for Service Component Architecture.
  • Have a WebSphere Application Server profile augmented to work with the Feature Pack for SCA. You can augment profiles using the WebSphere Application Server Profile Management Tool. If you install the feature pack for SCA, an SCA augmented profile is installed by default and can be used.
Next >

Feedback