Converting an enterprise application to an OSGi application
You convert an enterprise application to an OSGi application by completing manual tasks that convert the EAR file to an enterprise bundle archive (EBA) file.
To convert the enterprise application to an OSGi application, you must separately convert each of the components in the EAR file.
Complete the following tasks:
These tasks are described in detail in the following subtopics:
- Change the file extension from .ear to .eba.
- Convert any WAR files to OSGi web application bundles.
- Convert any enterprise bean (EJB) JAR files to OSGi EJB bundles.
- Convert any utility JAR files to OSGi bundles.
- Convert any persistence archive files to OSGi persistence bundles.
- Convert Java 2 security settings to OSGi.
Subtopics
- Converting a web application archive file to an OSGi web application bundle
When you convert an EAR file to an enterprise bundle archive (EBA) file, you complete manual tasks to convert any WAR files in the EAR file to OSGi web application bundles.
- Converting an EJB JAR file to an OSGi EJB bundle
When converting an EAR file to an enterprise bundle archive (EBA) file, you complete manual tasks to convert any enterprise bean (EJB) JAR files in the EAR file to OSGi EJB bundles.
- Converting a utility JAR file to an OSGi bundle
When converting an EAR file to an enterprise bundle archive (EBA) file, you complete manual tasks to convert any utility JAR files in the EAR file to OSGi bundles.
- Converting a persistence archive file to an OSGi bundle
When converting an EAR file to an enterprise bundle archive (EBA) file, you complete manual tasks to convert any persistence archive files in the EAR file to OSGi bundles.
- Converting Java 2 security settings in an enterprise application to OSGi
When converting an EAR file to an enterprise bundle archive (EBA) file, we can have any Java 2 security settings converted automatically to OSGi, and then manually refine them to obtain the required OSGi security configuration.
Parent topic: Converting existing applications to OSGi applications
Related concepts
Web application bundles Java 2 security and OSGi Applications Enterprise bundle archives
Related tasks
Converting a Spring application to an OSGi application Deploy an OSGi application as a business-level application Secure OSGi applications
Example: OSGi bundle manifest file