[svn r329] WIP commit, added EE JCA support and updated for x4o and made speed improvement and job que per process.
This commit is contained in:
parent
520ba683db
commit
46f1863f05
35 changed files with 1734 additions and 105 deletions
121
build/build-jca.xml
Normal file
121
build/build-jca.xml
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="foei-jca" default="deploy" basedir=".././">
|
||||
<property file="build/build.properties"/>
|
||||
|
||||
<path id="classpath">
|
||||
<fileset dir="${jboss.home}/server/${jboss.server}/lib" includes="*.jar"/>
|
||||
</path>
|
||||
|
||||
|
||||
<!-- Builds JCA application -->
|
||||
<target name="build">
|
||||
<mkdir dir="bin"/>
|
||||
<javac srcdir="src" destdir="bin" classpathref="classpath"/>
|
||||
|
||||
<antcall target="build.${server.name}"/>
|
||||
|
||||
<!--
|
||||
<jar destfile="dd.war">
|
||||
<zipfileset dir="bin" prefix="WEB-INF/classes" includes="**/web/*.class"/>
|
||||
<zipfileset dir="web" excludes="WEB-INF/*-web.xml"/>
|
||||
<zipfileset dir="web" includes="WEB-INF/${server.name}-web.xml"/>
|
||||
</jar>
|
||||
-->
|
||||
</target>
|
||||
|
||||
<target name="doBuildBinJar">
|
||||
<jar destfile="idcanet-foei-bin.jar" basedir="bin" includes="**">
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- Packs JBoss version of the resource adapter module -->
|
||||
<target name="build.jboss">
|
||||
<jar destfile="foei-ra.rar">
|
||||
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
|
||||
<zipfileset dir="meta/jboss" prefix="META-INF" includes="ra.xml"/>
|
||||
</jar>
|
||||
<jar destfile="bin/foei-ra.jar">
|
||||
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- Packs Geronimo version of the resource adapter module -->
|
||||
<target name="build.geronimo">
|
||||
<jar destfile="bin/foei-ra.jar">
|
||||
<zipfileset dir="bin" includes="com/idcanet/foei/ee/jca/**/*.class"/>
|
||||
</jar>
|
||||
<jar destfile="foei-ra.rar">
|
||||
<zipfileset dir="bin" includes="foei-ra.jar"/>
|
||||
<zipfileset dir="meta/geronimo" prefix="META-INF" includes="ra.xml"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
|
||||
<!--
|
||||
Deploys (or redeploys) the application on the currently selected
|
||||
server
|
||||
-->
|
||||
<target name="deploy" depends="build,doBuildBinJar">
|
||||
<antcall target="deploy.${server.name}"/>
|
||||
</target>
|
||||
|
||||
<!--
|
||||
Deploys (or redeploys) the application on JBoss. If the server is
|
||||
started the application will be installed and started on the fly.
|
||||
The JBoss version of the application must be previously built
|
||||
and located in the current folder.
|
||||
-->
|
||||
<target name="deploy.jboss">
|
||||
<copy todir="${jboss.home}/server/${jboss.server}/deploy" file="meta/jboss/foei-ds.xml"/>
|
||||
<copy todir="${jboss.home}/server/${jboss.server}/deploy" file="foei-ra.rar"/>
|
||||
<copy todir="${jboss.home}/server/${jboss.server}/lib" file="idcanet-foei-bin.jar"/>
|
||||
<!-- <copy todir="${jboss.home}/server/${jboss.server}/deploy" file="jca.war"/> -->
|
||||
</target>
|
||||
|
||||
<!--
|
||||
Deploys (or redeploys) the application on Geronimo. The server
|
||||
should be started.
|
||||
The Geronimo version of the application must be previously built
|
||||
and located in the current folder.
|
||||
-->
|
||||
<target name="deploy.geronimo">
|
||||
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.user}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="undeploy"/>
|
||||
<arg value="com/ibm/j2g/jca.war"/>
|
||||
</java>
|
||||
|
||||
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.user}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="undeploy"/>
|
||||
<arg value="com/ibm/j2g/jca.rar"/>
|
||||
</java>
|
||||
|
||||
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.user}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="deploy"/>
|
||||
<arg value="meta/geronimo/jca-plan.xml"/>
|
||||
<arg value="jca.rar"/>
|
||||
</java>
|
||||
|
||||
<java jar="${geronimo.home}/bin/deployer.jar" fork="true">
|
||||
<arg value="--user"/>
|
||||
<arg value="${geronimo.user}"/>
|
||||
<arg value="--password"/>
|
||||
<arg value="${geronimo.password}"/>
|
||||
<arg value="deploy"/>
|
||||
<arg value="jca.war"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
16
build/build.properties
Normal file
16
build/build.properties
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
# Name of the server to build the application for:
|
||||
server.name = jboss
|
||||
|
||||
# Home directory of JBoss 4.0.2 J2ee Application Server and name of the server
|
||||
# instance on which the application should be deployed (this instance should be
|
||||
# either a copy of the default JBoss server or the default server itself because
|
||||
# its libs are also used for building the source code):
|
||||
jboss.home = /home/willemc/devv/jboss-4.2.1.GA
|
||||
jboss.server = default
|
||||
|
||||
# Home directory of Geronimo 1.0M5 J2ee Application Server and its administrator
|
||||
# credentials:
|
||||
geronimo.home = /home/willemc/devv/apache-geronimo
|
||||
geronimo.user = system
|
||||
geronimo.password = manager
|
||||
Loading…
Add table
Add a link
Reference in a new issue