O'Reilly logo

Java EE Development with Eclipse by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Packaging and deploying the entity bean application

In this section, we shall compile, package, and deploy the EJB application to the WebLogic server using an Ant build file. First, add the web.xml deployment descriptor. Create a WEB-INF folder in the webModule folder and add web.xml to the WEB-INF folder. The web.xml is an optional deployment descriptor for a web application deployed to the WebLogic descriptor and is listed as follows:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web- app_2_5.xsd" version="2.5">
</web-app>

If we were using servlets or other web application artifacts, we would ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required