uCosminexus Application Server, Application Development Guide
To migrate the EAR project to WTP, create a project in WTP, and then migrate the resources of the EAR project. The procedure for migration is as follows:
Create an enterprise application project in WTP. For details on the procedure for creating the enterprise application project, see 4.4.4 Creating an enterprise application project.
When migrating an EAR project to the enterprise application project of WTP, specify the project name in the project name of the EAR project.
Create the corresponding module project as shown in the following table.
Table J-14 Correspondence of module projects to be created
| Item | Module projects to be created |
|---|---|
| If only WAR project is embedded in the EAR project | Dynamic Web module project |
| If only EJB-JAR project is embedded in the EAR project | EJB module project |
| If WAR project and EJB-JAR project are embedded in the EAR project | Dynamic Web module project and EJB module project |
Migrate the resources of the EAR project. For details on the resources that can be migrated, see Appendix J.2(1) Migrating the resources of an EAR project (archive format) and Appendix J.2(2) Migrating the resources of an EAR project (exploded archive format).
To migrate the resources of the EAR project, copy the resources to be migrated in the enterprise application project created in WTP. However, since you cannot migrate application.xml to the project created in WTP, you must copy only the definition. How to copy the resources, and how to migrate application.xml is as follows:
You can use the import functionality of WTP to copy resources. To import:
If you create an enterprise application project, an application.xml template will be created. In the created application.xml file, copy the definition contents of the application.xml file that was used in the environment prior to migration. For details on creating the enterprise application project, see 4.4.4 Creating an enterprise application project.
Following is an example of application.xml created automatically in WTP:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5">
<display-name>HelloEAR</display-name>
<module>
<web>
<web-uri>HelloWeb.war</web-uri>
<context-root>HelloWeb</context-root>
</web>
</module>
<module>
<ejb>HelloEJB.jar</ejb>
</module>
</application>
|
application.xml is created automatically based on the information set up when creating the enterprise application project. The various tags of application.xml are as follows:
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.