21.4. Building and Deploying the Entity Bean

The compilation and packaging of the bean doesn't introduce anything new. Listing 21.5 shows excerpts from the nfl/application/ejb/build.xml file that build the targets related to our entity bean. There is one more WebLogic-specific file we now have to include in the META-INF directory of our EJB-JAR; we'll look at that in detail shortly.

Listing 21.5. build.xml
 <target name="compile-entity"> <javac srcdir="." classpath="${j2ee.jar}:../../.." > <include name="GameHome.java" /> <include name="GameRemote.java" /> <include name="GameEntityBean.java" /> <include name="GamePK.java" /> <include name="EBVInfo.java" /> <include name="GameEJBAdapter.java" /> </javac> <javac srcdir="../../persistence" classpath="${j2ee.jar}:../../.." ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.