We also need to create an application.xml
deployment descriptor to generate an EAR application to be deployed to the WebLogic Server. First, create a META-INF
folder by going to File | New | Folder. Subsequently, create an XML file going to File | New | Other and then click on XML | XML File in the New wizard. Click on Next.
Specify the META-INF folder and specify the filename as application.xml
. Click on Next as shown in the following screenshot:
Click on
Create an XML file from an XML template and then click on Next. In Select XML Template, select the checkbox Use XML Template. Select the xml declaration in the XML Template and click on Finish. An application.xml
file gets added to the META-INF
folder. Specify an EJB module and a web module in the deployment descriptor. The application.xml
descriptor is listed as follows:
<?xml version="1.0" encoding="UTF-8"?> <application> <display-name></display-name> <module> <ejb>ejb3example.jar</ejb> </module> <module> <web> <web-uri>weblogicexample.war</web-uri> <context-root>weblogic</context-root> </web> </module> </application>
The following screenshot shows application.xml
in the EJB project: