Thursday, December 23, 2010

Weblogic tool appc for EJB pre-compilation

<project basedir="." default="appc-ejb" name="appc-ejb">
<property environment="env"/>

<property name="wl.home" value="/app/wlserver_10.3"/>
<property name="application.dir" value="/home/dave/workspace/wls1033/testEJBGen/build/classes" />

<echo message="${wl.home}/server/lib"/>

<path id="wlappc.classpath">
<fileset dir="${wl.home}/server/lib">
<include name="*.jar"/>
</fileset>
</path>

<echo message="${toString:wlappc.classpath}"/>

<taskdef name="wlappc" classpathref="wlappc.classpath" classname="weblogic.ant.taskdefs.j2ee.Appc"/>

<target name="appc-ejb">
<wlappc source="${application.dir}"
keepgenerated="true"
verbose="true"
classpathref="wlappc.classpath"/>
</target>
</project>


Buildfile: /home/dave/workspace/wls1033/testEJBGen/build.xml
[echo] /app/wlserver_10.3/server/lib
[echo] /app/wlserver_10.3/server/lib/weblogic.jar
appc-ejb:
[wlappc] <Dec 23, 2010 9:28:28 PM CET> <Warning> <EJB> <BEA-010212> <The EJB 'TestSessionEJBGen(Jar: /home/dave/workspace/wls1033/testEJBGen/build/classes)' contains at least one method without an explicit transaction attribute setting. The default transaction attribute of Supports will be used for the following methods: remote[helloEJBGen(java.lang.String)] >
[wlappc] <Dec 23, 2010 9:28:31 PM CET> <Info> <J2EE> <BEA-160220> <Compilation completed successfully>
BUILD SUCCESSFUL


[dave@dave dave]$ pwd
/home/dave/workspace/wls1033/testEJBGen/build/classes/dave
[dave@dave dave]$ ls -lt
total 196
-rw-r--r--. 1 dave vesedan 3834 Dec 23 21:28 TestSessionEJBGen_pq6ajk_EOImpl_1033_WLStub.class
-rw-r--r--. 1 dave vesedan 1003 Dec 23 21:28 TestSessionEJBGen_pq6ajk_EOImplRTD.xml
-rw-r--r--. 1 dave vesedan 3387 Dec 23 21:28 TestSessionEJBGen_pq6ajk_EOImpl_WLSkel.class
-rw-r--r--. 1 dave vesedan 4957 Dec 23 21:28 TestSessionEJBGen_pq6ajk_HomeImpl_1033_WLStub.class
-rw-r--r--. 1 dave vesedan 4172 Dec 23 21:28 TestSessionEJBGen_pq6ajk_HomeImpl_WLSkel.class
-rw-r--r--. 1 dave vesedan 2635 Dec 23 21:28 TestSessionEJBGen_pq6ajk_ELOImpl.class
-rw-r--r--. 1 dave vesedan 4447 Dec 23 21:28 TestSessionEJBGen_pq6ajk_EOImpl.class
-rw-r--r--. 1 dave vesedan 3152 Dec 23 21:28 TestSessionEJBGen_pq6ajk_HomeImpl.class
-rw-r--r--. 1 dave vesedan 1087 Dec 23 21:28 TestSessionEJBGen_pq6ajk_HomeImplRTD.xml
-rw-r--r--. 1 dave vesedan 3763 Dec 23 21:28 TestSessionEJBGen_pq6ajk_Impl.class
-rw-r--r--. 1 dave vesedan 416 Dec 23 21:28 TestSessionEJBGen_pq6ajk_Intf.class
-rw-r--r--. 1 dave vesedan 2732 Dec 23 21:28 TestSessionEJBGen_pq6ajk_LocalHomeImpl.class
-rw-r--r--. 1 dave vesedan 2594 Dec 23 21:28 TestSessionEJBGen_pq6ajk_ELOImpl.java
-rw-r--r--. 1 dave vesedan 4006 Dec 23 21:28 TestSessionEJBGen_pq6ajk_EOImpl.java
-rw-r--r--. 1 dave vesedan 2999 Dec 23 21:28 TestSessionEJBGen_pq6ajk_HomeImpl.java
-rw-r--r--. 1 dave vesedan 4083 Dec 23 21:28 TestSessionEJBGen_pq6ajk_Impl.java
-rw-r--r--. 1 dave vesedan 626 Dec 23 21:28 TestSessionEJBGen_pq6ajk_Intf.java
-rw-r--r--. 1 dave vesedan 2540 Dec 23 21:28 TestSessionEJBGen_pq6ajk_LocalHomeImpl.java
-rw-r--r--. 1 dave vesedan 1447 Dec 23 20:53 TestSessionEJBGen.class
-rw-r--r--. 1 dave vesedan 162 Dec 23 20:53 TestSessionEJBGenLocal.class
-rw-r--r--. 1 dave vesedan 275 Dec 23 20:53 TestSessionEJBGenLocalHome.class
-rw-r--r--. 1 dave vesedan 275 Dec 23 20:53 TestSessionEJBGenRemote.class
-rw-r--r--. 1 dave vesedan 305 Dec 23 20:53 TestSessionEJBGenRemoteHome.class

1 comment:

  1. Thanks for sharing the wonderful information about the topic and good points were mentioned in the blog which are very useful to all for the further information visit our site
    Oracle Fusion Training

    ReplyDelete