hung2003
asked on
Oracle DataSource and WebSphere 5.1 - CMP
Hi all,
I'm deploying EJB in my build.xml (ANT); however, my build script only put up the default db which is DB2UDBNT_V72_1, but my WebSphere 5.1 is using Oracle 8.1 dataSource. So, I modified my build.xml to the following
<target name="ws51-ejb-build" depends="compile" if="ws51.library.available ">
<mkdir dir="${build.lib}"/>
<property name="websphere.home" value="${env.WAS_HOME}"/>
<ejbjar srcdir="${build.classes}" destdir="${build.lib}" descriptordir="${source.et c}/META-IN F" dependency="none" manifest="${source.etc}/ME TA-INF/MAN IFEST-ws.M F" basejarname="application.e jb-ws51">
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${sun.j2ee13.ejb -dtd}"/>
<include name="**/ejb-jar-mdb.xml"/ >
<exclude name="**/weblogic-ejb*.xml "/>
<exclude name="**/ejb-jar.xml"/>
<support dir="${build.classes}">
<include name="**"/>
</support>
<classpath>
<path refid="dependentmodule.cla sspath" />
</classpath>
<websphere dbvendor="ORACLE_V8" ejbdeploy="false" destdir="${build.lib}" keepgeneric="false" suffix="-ejb-tmp.jar" oldCMP="false" tempdir="/tmp">
<wasclasspath>
<pathelement location="${ibm.ws51.root} /deploytoo l/itp/plug ins/org.ec lipse.core .boot/boot .jar"/>
<pathelement location="${ibm.ws51.root} /deploytoo l/itp/plug ins/com.ib m.etools.e jbdeploy/r untime/bat ch.jar"/>
<pathelement location="${ibm.ws51.lib}/ xerces.jar "/>
<pathelement location="${ibm.ws51.lib}/ ivjejb35.j ar"/>
<pathelement location="${ibm.ws51.lib}/ j2ee.jar"/ >
<pathelement location="${ibm.ws51.lib}/ vaprt.jar" />
</wasclasspath>
</websphere>
</ejbjar>
</target>
<target name="ejbdeploy-ws51-uptod ate">
<condition property="ws51-uptodate">
<uptodate targetfile="${build.lib}/$ {module.na me}-ws51-e jb.jar">
<srcfiles dir="${build.lib}" >
<include name="${module.name}-ws51- ejb-tmp.ja r"/>
</srcfiles>
</uptodate>
</condition>
</target>
<target name="ejbdeploy-ws51" depends="ejbdeploy-ws51-up todate" unless="ws51-uptodate">
<echo message="Output from command ejbdeploy.sh will be in /tmp/ejbdeploy-ws51.log ."/>
<exec executable="${ibm.ws51.roo t}/deployt ool/ejbdep loy.sh" output="/tmp/ejbdeploy-ws5 1.log">
<arg value="${ibm.ws51.root}"/>
<arg value="${build.lib}/${modu le.name}-w s51-ejb-tm p.jar"/>
<arg value="/tmp"/>
<arg value="${build.lib}/${modu le.name}-w s51-ejb.ja r"/>
</exec>
</target>
But this script doesn't work. Still it generated DB2UDBNT_V72_1 table mapping...
Please help! Thank you!!
I'm deploying EJB in my build.xml (ANT); however, my build script only put up the default db which is DB2UDBNT_V72_1, but my WebSphere 5.1 is using Oracle 8.1 dataSource. So, I modified my build.xml to the following
<target name="ws51-ejb-build" depends="compile" if="ws51.library.available
<mkdir dir="${build.lib}"/>
<property name="websphere.home" value="${env.WAS_HOME}"/>
<ejbjar srcdir="${build.classes}" destdir="${build.lib}" descriptordir="${source.et
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${sun.j2ee13.ejb
<include name="**/ejb-jar-mdb.xml"/
<exclude name="**/weblogic-ejb*.xml
<exclude name="**/ejb-jar.xml"/>
<support dir="${build.classes}">
<include name="**"/>
</support>
<classpath>
<path refid="dependentmodule.cla
</classpath>
<websphere dbvendor="ORACLE_V8" ejbdeploy="false" destdir="${build.lib}" keepgeneric="false" suffix="-ejb-tmp.jar" oldCMP="false" tempdir="/tmp">
<wasclasspath>
<pathelement location="${ibm.ws51.root}
<pathelement location="${ibm.ws51.root}
<pathelement location="${ibm.ws51.lib}/
<pathelement location="${ibm.ws51.lib}/
<pathelement location="${ibm.ws51.lib}/
<pathelement location="${ibm.ws51.lib}/
</wasclasspath>
</websphere>
</ejbjar>
</target>
<target name="ejbdeploy-ws51-uptod
<condition property="ws51-uptodate">
<uptodate targetfile="${build.lib}/$
<srcfiles dir="${build.lib}" >
<include name="${module.name}-ws51-
</srcfiles>
</uptodate>
</condition>
</target>
<target name="ejbdeploy-ws51" depends="ejbdeploy-ws51-up
<echo message="Output from command ejbdeploy.sh will be in /tmp/ejbdeploy-ws51.log ."/>
<exec executable="${ibm.ws51.roo
<arg value="${ibm.ws51.root}"/>
<arg value="${build.lib}/${modu
<arg value="/tmp"/>
<arg value="${build.lib}/${modu
</exec>
</target>
But this script doesn't work. Still it generated DB2UDBNT_V72_1 table mapping...
Please help! Thank you!!
ASKER
I didn't find my ans from your link, R.K.
My question is what is wrong with my build.xml, and how can I make it work? I thought the only key thing is "dbvendor"? Or there are other things I need?
Thanks!
My question is what is wrong with my build.xml, and how can I make it work? I thought the only key thing is "dbvendor"? Or there are other things I need?
Thanks!
ASKER
I got my question solved by myself
just added one more arg instead of add dbvender inside <websphere>
Thanks!
However, I can't delete this question.
just added one more arg instead of add dbvender inside <websphere>
Thanks!
However, I can't delete this question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can follow the guide below to check the steps....
http://www.specbench.org/jAppServer2002/docs/UserGuide.html
R.K