+

Search Tips   |   Advanced Search

Add an EBA asset to a composition unit using the administrative console

Use the administrative console to add a composition unit that consists of a previously-imported EBA asset plus configuration information. The configuration information can include HTTP session management, context roots, virtual hosts, security roles, run-as roles, JNDI mappings for Session enterprise beans, JNDI mappings for EJB references, and web application or Blueprint resource reference bindings for our OSGi application.

We can add an EBA asset to a business-level application using the administrative console as described in this topic, or using the addCompUnit command as described in Add an EBA asset to a composition unit using wsadmin commands.

An EBA asset can be added to only one business-level application. A business-level application is scoped to cell scope, therefore only one instance of an OSGi application can be deployed in a cell.

This task makes the following assumptions:

An OSGi composition unit consists of an EBA asset, (optionally) one or more composite bundle extensions, and some or all of the following configuration information:

We use the Set options settings wizard to add a new composition unit to a business-level application. The contents of the asset determine the specific steps in the wizard. This topic describes the main elements that we configure when adding an EBA asset. For a general description of all the elements that the wizard might prompt you to configure, see Create business-level applications with the console.

In addition to specifying the configuration information for the EBA asset through the following procedure, we can also change it later as described in Modify the configuration of an OSGi composition unit. For example, if you update a bundle in an EBA asset, or replace a composite bundle extension, we might introduce a resource that requires additional configuration, such as a new or changed Blueprint resource reference, or security role mapping.


Tasks

  1. Start the administrative console.

  2. Add the previously-imported asset (the EBA file) as a deployed asset.

    1. If we have just created a new business-level application, the general properties for the business-level application are already displayed, including the option [Deployed assets] Add > Add Asset. Otherwise, navigate to Applications > Application Types > Business-level applications > application_name > [Deployed assets] Add > Add Asset. A list of available assets is displayed.

    2. Select the asset to add, then click Continue. The Set options settings wizard is displayed.

  3. Wizard step: Set options.

    Change the composition unit settings as needed, then click Next. See Set options settings.

  4. Wizard step: Map composition unit to a target.

    Select the deployment target application server or web server. See Map target settings.

  5. Wizard step: Map context root for web modules.

    Select a web application bundle (WAB) from the list, then enter the context root for the WAB. For example, /sample. See Context root for web modules [Settings].

  6. Wizard step: Map virtual hosts for web modules.

    The list of available WABs in this asset is displayed. For each WAB, we can change the associated virtual host by selecting a different one from the list. If we specify an existing virtual host in the ibm-web-bnd.xml or .xmi file for a WAB, the specified virtual host is set by default. Otherwise, the default virtual host setting is default_host. See Virtual hosts for web modules [Settings].

  7. Wizard step: Map security roles to users or groups.

    Change the security mapping as needed. See Security role to user or group mapping [Settings].

  8. Wizard step: Map RunAs roles to users

    We can map a specified user identity and password to a RunAs role. This mapping enables us to specify application-specific privileges for individual users, so that they can run specific tasks using another user identity. See RunAs roles for users [Collection].

  9. Wizard step: Bind Blueprint resource references.

    The list of available Blueprint resource references in this asset is displayed. For each reference, we can optionally select an authentication alias from the list. Default authentication aliases (from ibm-eba-bnd.xml files) are offered only if they exist on every target server or cluster. See Blueprint resource references [Settings].

  10. Wizard step: Map web module resource references to resources.

    The list of available web application resource references in this asset is displayed. That is, resources of type resource-ref (resource reference), as defined in the Java specification JSR-250: Common Annotations for the Java Platform. For each reference, specify the JNDI name under which the resource is known in the runtime environment. Optionally, set authentication properties and extended data source custom properties, which affect how the resource is accessed at run time. To specify the JNDI name mapping, either type the JNDI name into the box, or click Browse... then select the resource reference from the list of available resources. To modify the authentication method, or to set extended data source custom properties that apply to the database connection, select a single reference then click Modify Resource Authentication Method... or Extended Properties.... For more information, see Web module resource references [Settings].

  11. Wizard step: Bind web module message destination references to administered objects.

    The list of available web application message destination and resource environment references in this asset is displayed. That is, resources of type message-destination-ref (message destination reference) or resource-env-ref (resource environment reference), as defined in the Java specification JSR-250: Common Annotations for the Java Platform. For each reference, specify the JNDI name under which the resource is known in the runtime environment. For more information, see Web module message destination references [Settings].

  12. Wizard step: Provide EJB JNDI names

    For each Session enterprise bean in the composition unit, we can specify the JNDI name by which the enterprise bean is known in the runtime environment. See EJB JNDI names [Settings].

  13. Wizard step: Map EJB References

    For each EJB reference defined in either an ejb-jar.xml file, a web.xml file, or an @EJB annotation in the composition unit, we can specify the JNDI name by which the EJB reference is known in the runtime environment. See EJB references [Settings].

  14. Wizard step: Map EJB resource references to resources

    The list of available EJB resource references in this asset is displayed. That is, resources of type resource-ref (resource reference), as defined in the Java specification JSR-250: Common Annotations for the Java Platform. For each reference, specify the JNDI name under which the resource is known in the runtime environment. For more information, see EJB resource references [Settings].

  15. Wizard step: Bind EJB message destination references to administered objects

    The list of available EJB message destination and resource environment references in this asset is displayed. That is, resources of type message-destination-ref (message destination reference) or resource-env-ref (resource environment reference), as defined in the Java specification JSR-250: Common Annotations for the Java Platform. For each reference, specify the JNDI name under which the resource is known in the runtime environment. For more information, see EJB message destination references [Settings].

  16. Wizard step: Map EJB environment entries

    For each simple environment entry defined in either an env-entry element in an ejb-jar.xml file or in an @Resource annotation in the composition unit, we can specify the value of the environment entry. See EJB environment entries [Settings].

  17. Wizard step: Bind listeners for message-driven beans

    For each message-driven bean (MDB) defined in either an ejb-jar.xml file or in an @MessageDriven annotation in the composition unit, we can specify the settings necessary to bind an MDB listener to the MDB. By binding a listener to an MDB, we configure the association of the MDB with the JMS destination from which the MDB receives messages. See Listeners for message-driven beans [Settings].

  18. Wizard step: Summary

    A summary of our selections is displayed. To complete the creation of the composition unit, click Finish. If there are settings to change, click Previous to review the settings.

  19. Save changes to the master configuration.

The product creates composition units for the application, module, or shared library relationships. The unit names are shown in lists of deployed assets on the settings page of our business-level application. To view the settings page, click...

        Applications > Application Types > Business-level applications > application_name.


What to do next

After we import the enterprise bundle archive (EBA) file for our OSGi application as an asset, we can update versions of existing bundles but we cannot add extra bundles to the asset. However, after we have added the asset as a composition unit to a business-level application, we can extend the business-level application by adding one or more composite bundles to the composition unit. See Add or removing extensions for an OSGi composition unit.

We are now ready to start a business-level application.


Related:

  • JMS and OSGi Applications
  • Assets
  • Business-level applications
  • Composition units
  • Virtual hosts
  • Security domains
  • Add an EBA asset to a composition unit using wsadmin commands
  • Create business-level applications with the console
  • Update bundle versions for an EBA asset
  • Secure OSGi applications
  • Set options settings
  • Map target settings
  • Options for the AdminApp object install
  • Blueprint resource references [Settings]
  • Context root for web modules [Settings]
  • Security role to user or group mapping [Settings]
  • RunAs roles for users [Collection]
  • Virtual hosts for web modules [Settings]
  • Web module message destination references [Settings]
  • Web module resource references [Settings]
  • Web module resource references: Available resources [Collection]
  • EJB JNDI names [Settings]
  • EJB references [Settings]
  • EJB message destination references [Settings]
  • EJB resource references [Settings]
  • EJB environment entries [Settings]




    File name: was3412.html

    prettyPrint();