WAS v8.5 > Deploy applications > Deploy SCA composites > Deploy SCA business-level applications > Create SCA business-level applicationsCreate SCA business-level applications with the console
We can create an empty business-level application and then add SCA assets, shared libraries, or business-level applications as composition units to the empty business-level application.
Configure the target application server. You must deploy SCA composite assets of a business-level application to a v8.x server (target) or to a v7.0 target that is enabled for the Feature Pack for SCA.
If your SCA composite or application uses Feature Pack for SCA v1.0.1 functionality, you must deploy the SCA asset or application to a v8.5 target or to a feature pack v1.0.1.0 target. v1.0.1 functionality includes:
- JMS bindings
- Atom bindings
- HTTP bindings with a wire format of JSON-RPC
- Java EE integration modules (implementation.jee, implementation.web, or implementation.ejb components)
- SCA Spring component implementations
- OSGi applications as SCA component implementations
- Service Data Objects (SDO) composites
Also, determine an application name. Optionally, determine which assets, shared libraries, or business-level applications the new business-level application needs. We can create a business-level application that has SCA assets using the dmgr console. Alternatively, we can use the wsadmin scripting tool or programming.
We can add an asset or shared library composition unit to multiple business-level applications. However, each composition unit for the same asset must have a unique composition unit name. We can add a business-level application composition unit to more than one business-level application.
- Create an empty business-level application.
- Click Applications > New Application > New Business-level Application.
- On the New business-level application page, specify a unique name for the application and a description, and then click Apply.
- On the business-level application settings page, click Save.
The name and description are shown in the list of applications on the Business-level applications page. Because the application is empty, its status is Unknown.
- Add one SCA asset to your business-level application. WAS v8.5 adds the asset as a composition unit of your business-level application.
- Import the SCA asset.
- Go to the business-level application settings page.
Click Applications > Application Types > Business-level applications > application_name.
- On the business-level application settings page, specify the type of composition unit to add.
Although we can add an asset, shared library, or business-level application to your business-level application, the logic is in your SCA asset. Add the SCA asset as a composition unit.
Under Deployed assets, click Add > Add Asset.
- On the Add page, select one unit from the list of available units, and then click Continue.
On the Add page, you might be able to select multiple deployable SCA composites. However, we can deploy only one deployable SCA composite at a time. Select only one unit and click Continue. If you select multiple units, the product deploys only one of those units.
For applications that use implementation.osgiapp, add the enterprise bundle archive (EBA) asset as a composition unit to the business-level application before adding the SCA asset as a composition unit.
- On the Set options page, change the composition unit settings as needed, and then click Next.
This page is not shown if we have multiple deployable unit assets.
- On the Map composition unit to a target page, specify one target server that supports SCA composites, and then click Next.
The target server can be an existing cluster. To map the composition unit to a cluster, select the existing cluster from the Available list, click Add, and then click Next. The cluster name is shown in the Current targets list as WebSphere:cluster=cluster_name.
If you are adding an SCA asset that uses security, specify a target server that is in the global security domain.
For applications that use implementation.osgiapp in multiple-node environments, target the EBA composition unit to the same server as the SCA composition unit.
This page is not shown when we add a business-level application.
- On the Relationship options page, click Next to accept the default values.
The relationships in SCA applications are set at the asset level. Either the asset must be defined as an SCA contribution or, in the asset view, a relationship must be set to another asset. When a relationship is set to another asset manually at the asset level, the relationship only exposes all the packages within the asset to the other depended asset. The namespaces are not exposed.
This page is shown only for SCA assets that have multiple deployable or composition units.
- On the Set Java EE composition unit relationship page, associate SCA components with Java EE applications and then click Next.
Java EE applications are also known as enterprise applications or EAR files. An SCA composite definition can specify an EAR file to use on the archive attribute of an implementation.jee tag. Use this page to associate SCA components in this business-level application to the EAR files named in the composite definition. If your SCA application does not use EAR files, take the default values and click Next.
- On the Map security roles to users or groups page, specify security roles for users or groups as needed, and then click Next.
This page is only shown for SCA assets that use security.
- On the Map RunAs roles to users page, map a user identity and password to RunAs roles as needed, and then click Next.
This page is only shown for SCA assets that use security.
- On the Map virtual host page, specify a virtual host that hosts web services for each SCA composite, and then click Next. By default, composites map to default_host.
This page is only shown for SCA assets containing a web service binding.
- On the Attach policy set page, attach a policy set and assign policy set bindings as needed, and then click Next.
This page is only shown for SCA assets that use web services.
- On the Summary page, click Finish. Several messages are displayed, indicating whether the product adds the unit to the business-level application successfully. A message having the format Completed res=[WebSphere:cuname=unit_name] indicates the addition is successful. Click Manage application.
If the product adds the unit successfully, the name of the unit is shown in a list of deployed assets on the business-level application settings page.
If the unit addition is not successful, read the messages and add the unit again. Correct the problems noted in the messages.
- On the Adding composition unit to the business-level application page, click Save.
- Optional: Add one or more assets, shared libraries, or business-level applications to your business-level application.
Repeat Step 2 to add another asset or add a shared library or business-level application.
Results
A business-level application containing the specified composition units.
After creating the application, save the changes to your configuration and start the application as needed.
If a composite asset is deployed to a target that does not support SCA composites, the SCA composite does not start. You must deploy an SCA asset to a target that supports SCA composites.
Subtopics
- Attach policy set settings
Use this page to attach a policy set and assign policy set bindings for the composite defined in a SCA application.- Map security roles to users or groups collection for SCA composites
Use this page to view and manage mappings of security roles to users and groups used with the SCA composites.- Map RunAs roles to users collection for SCA composites
Use this page to map a specified user identity and password to a RunAs role for a SCA composite. This page enables you to specify application-specific privileges for individual users to run specific tasks using another user identity.- Map virtual host settings for SCA composites
Use this page to map SCA composites that use a web service binding to a virtual host. You must map the composites to the virtual host that hosts the web services.- Set Java EE composition unit relationships for SCA composites
Use this page to associate SCA components in an SCA composite with Java EE applications, otherwise known as enterprise applications or EAR files.- Map virtual host settings for SCA composites
Use this page to map SCA composites that use a web service binding to a virtual host. You must map the composites to the virtual host that hosts the web services.- Set Java EE composition unit relationships for SCA composites
Use this page to associate Service Component Architecture (SCA) components in an SCA composite with Java EE applications, otherwise known as enterprise applications or enterprise archive (EAR) files.- Attach policy set settings
Use this page to attach a policy set and assign policy set bindings for the composite defined in a Service Component Architecture (SCA) application.- Map security roles to users or groups collection for SCA composites
Use this page to view and manage mappings of security roles to users and groups used with the Service Component Architecture (SCA) composites.- Map RunAs roles to users collection for SCA composites
Use this page to map a specified user identity and password to a RunAs role for a SCA composite. This page enables you to specify application-specific privileges for individual users to run specific tasks using another user identity.
Related concepts:
Composition units
Business-level applications
Related
Example: Creating an SCA business-level application with the console
Example: Creating an SCA business-level application with scripting
Importing assets
Reference:
Composition unit settings
Add composition unit settings
Add asset settings
Asset page
Business-level application page
Business-level application settings
New business-level application settings
Select installation options settings
Set options settings
Map target settings
Relationship options settings
Shared library relationship and mapping settings