Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop OSGi applications > Convert existing applications to OSGi applications


Convert an enterprise application to an OSGi application

We can automatically convert an EAR file that contains WAR files to an enterprise bundle archive (EBA) file.


Before you begin

Ensure that the enterprise application is suitable for conversion to an OSGi application. Check whether any manual conversion steps are required first. See Conversion of an enterprise application to an OSGi application.


About this task

We can automatically convert a web application to an OSGi application, that is, you can convert an EAR file that contains only WAR files. For other enterprise applications, you might require manual migration steps before you use the following procedure.


Procedure

  1. Rename the EAR file (.ear) to an EBA file (.eba).

  2. In WAS, import the EBA file as an asset.

  3. Optional: Modify any converted Java 2 security settings.

    When you convert an application from Java EE to OSGi, any existing was.policy file is converted into a permissions.perm file to be used with the OSGi permissions framework, and all permissions are promoted to the application level. If you need finer granularity, you can modify the file after conversion. See Java 2 security and OSGi Applications.


Results

The WAR files are automatically converted to web application bundles (WABs). Any Java 2 security was.policy file is converted into a permissions.perm file. Any Utility JAR or EJB JAR files are not converted and the EJB function is not directly accessible in the EJB container.

Parent topic: Convert existing applications to OSGi applications

Related concepts:

About OSGi Applications
Conversion of an enterprise application to an OSGi application
Web application bundles
Java 2 security and OSGi Applications

Related tasks:

Convert a Spring application to an OSGi application
Secure OSGi Applications
Deploy an OSGi application as a business-level application

Related reference:

Convert a JPA-based Java EE Web application to OSGi with Blueprint object injection in WAS V7 (also applies to V8)
OSGi Applications: Troubleshooting tips
Task topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.

+

Search Tips   |   Advanced Search