2 Replies Latest reply on Aug 21, 2003 4:18 AM by firsttimer

    Creating weblogic like JDBCDataSource in JBoss

    firsttimer

      Hello,
      I am using jboss-3.2.2RC2, what I want to acheive is:

      - Create Weblogic style JDBCDataSource in JBoss
      In config.xml or through web interface of Weblogic you can create a Connection Pool and then attach various DataSources that can have a variety of JNDI names, I want to do the same in JBoss. What I have been able to find out is:
      - How to create Datasources in JBoss
      - How to create Connection Pool in JBoss

      But I am unable to figure out how to do the same configuration as in Weblogic

      I have read almost everything I could lay my hands on but am unable to figure it out. Can someone please help me out with this

      -Thank you for your time

        • 1. Re: Creating weblogic like JDBCDataSource in JBoss
          wisaner

          1) copy the jdbc drvier to your %JBOSS_HOME%/servlet/default/lib eg.
          mssqlserver is msbase.jar, mssqlserver.jar, msutil.jar

          2) copy file from %JBOSS_HOME%/docs/examples/jca
          , end with -ds.xml , eg
          mssqlservler is : mssql-ds.xml

          to file folder JBOSS_HOME%/servlet/default/deploy

          3) change the file content to fiexed you

          Now you can use it in jdni.

          if you want to use connection pool , and you can
          open %JBOSS_HOME%/docs/examples/jca/generic-ds.xml, you will find it is so easy

          good luck!






          • 2. Re: Creating weblogic like JDBCDataSource in JBoss
            firsttimer

            Thanks for your reply, what I wanted to know is how can I assign multiple JNDI names to a single Connection Pool or a Single Datasource

            -Thanks