Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Oracle DataSource and WebSphere 5.1 - CMP

Posted on 2004-08-10
5
Medium Priority
?
731 Views
Last Modified: 2013-12-10
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.etc}/META-INF" dependency="none" manifest="${source.etc}/META-INF/MANIFEST-ws.MF" basejarname="application.ejb-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.classpath" />
       </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}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar"/>
           <pathelement location="${ibm.ws51.root}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
           <pathelement location="${ibm.ws51.lib}/xerces.jar"/>
           <pathelement location="${ibm.ws51.lib}/ivjejb35.jar"/>
           <pathelement location="${ibm.ws51.lib}/j2ee.jar"/>
           <pathelement location="${ibm.ws51.lib}/vaprt.jar"/>
         </wasclasspath>
       </websphere>
    </ejbjar>
   </target>

  <target name="ejbdeploy-ws51-uptodate">
    <condition property="ws51-uptodate">
      <uptodate targetfile="${build.lib}/${module.name}-ws51-ejb.jar">
        <srcfiles dir="${build.lib}" >
          <include name="${module.name}-ws51-ejb-tmp.jar"/>
        </srcfiles>
      </uptodate>
    </condition>
  </target>

  <target name="ejbdeploy-ws51" depends="ejbdeploy-ws51-uptodate" unless="ws51-uptodate">
    <echo message="Output from command ejbdeploy.sh will be in /tmp/ejbdeploy-ws51.log ."/>
    <exec executable="${ibm.ws51.root}/deploytool/ejbdeploy.sh" output="/tmp/ejbdeploy-ws51.log">
       <arg value="${ibm.ws51.root}"/>
       <arg value="${build.lib}/${module.name}-ws51-ejb-tmp.jar"/>
       <arg value="/tmp"/>
       <arg value="${build.lib}/${module.name}-ws51-ejb.jar"/>
    </exec>
  </target>

But this script doesn't work. Still it generated DB2UDBNT_V72_1 table mapping...

Please help! Thank you!!
0
Comment
Question by:hung2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 11769445
Hi,

You can follow the guide below to check the steps....

http://www.specbench.org/jAppServer2002/docs/UserGuide.html

R.K
0
 

Author Comment

by:hung2003
ID: 11769868
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!
0
 

Author Comment

by:hung2003
ID: 11779307
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.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12038014
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question