8 Replies Latest reply on Sep 27, 2002 10:25 AM by coughlam

    MySQL Connection Pool in Jboss 3.0.0

    coughlam

      Hi,
      Could anybody tell me how to configure a MySQL database connection pool in JBoss 3.0.0 ?

      What xml files to modify etc...


      Thanks in advance !

      Mick

        • 1. Re: MySQL Connection Pool in Jboss 3.0.0

          There are examples under docs/examples/jca did you check those?

          • 2. Re: MySQL Connection Pool in Jboss 3.0.0
            coughlam

            Hi juha,
            Thanks for your help.
            I tried this, but when I try to do an JNDI lookup for the Datasource I get a "NameNotFoundException".

            In the Agent view, in the jboss.jca area, I can see that it has created the following:

            service=LocalTxCM,name=MySqlDataSource
            service=LocalTxDS,name=MySqlDataSource
            service=LocalTxPool,name=MySqlDataSource


            Despite this, I still get the JNDI lookup error.

            • 3. Re: MySQL Connection Pool in Jboss 3.0.0
              coughlam

              Hi juha,
              Thanks for your help.
              I tried this, but when I try to do an JNDI lookup for the Datasource I get a "NameNotFoundException".

              In the Agent view, in the jboss.jca area, I can see that it has created the following:

              service=LocalTxCM,name=MySqlDataSource
              service=LocalTxDS,name=MySqlDataSource
              service=LocalTxPool,name=MySqlDataSource


              Despite this, I still get the JNDI lookup error.

              • 4. Re: MySQL Connection Pool in Jboss 3.0.0
                coughlam

                Hi juha,
                Thanks for your help.
                I tried this, but when I try to do an JNDI lookup for the Datasource I get a "NameNotFoundException".

                In the Agent view, in the jboss.jca area, I can see that it has created the following:

                service=LocalTxCM,name=MySqlDataSource
                service=LocalTxDS,name=MySqlDataSource
                service=LocalTxPool,name=MySqlDataSource


                Despite this, I still get the JNDI lookup error.

                • 5. Re: MySQL Connection Pool in Jboss 3.0.0
                  coughlam

                  Hi juha,
                  Thanks for your help.
                  I tried this, but when I try to do an JNDI lookup for the Datasource I get a "NameNotFoundException".

                  In the Agent view, in the jboss.jca area, I can see that it has created the following:

                  service=LocalTxCM,name=MySqlDataSource
                  service=LocalTxDS,name=MySqlDataSource
                  service=LocalTxPool,name=MySqlDataSource


                  Despite this, I still get the JNDI lookup error.

                  • 6. Re: MySQL Connection Pool in Jboss 3.0.0
                    coughlam

                    Hi juha,
                    Thanks for your help.
                    I tried this, but when I try to do an JNDI lookup for the Datasource I get a "NameNotFoundException".

                    In the Agent view, in the jboss.jca area, I can see that it has created the following:

                    service=LocalTxCM,name=MySqlDataSource
                    service=LocalTxDS,name=MySqlDataSource
                    service=LocalTxPool,name=MySqlDataSource


                    Despite this, I still get the JNDI lookup error.

                    • 7. Re: MySQL Connection Pool in Jboss 3.0.0
                      ewen

                      lookup("java:/MySqlDS");
                      justlike this. try it.

                      • 8. Re: MySQL Connection Pool in Jboss 3.0.0
                        coughlam

                        Hi,
                        I got it working, I was trying to do the lookup from a different VM, so as soon as I wrapped the functionality in an EJB, it worked fine.


                        Thanks guys for you help.

                        Mick