4 Replies Latest reply on Apr 9, 2002 5:16 AM by maouche

    jndi Name for DataSource

    maouche

      Hi,

      Is there any way to bind a datasource as a global jndi name
      (not restricted to the JMV server java:/myDSname )
      Can I developp a specific Mbean for this ?

      Thanks for response

        • 1. Re: jndi Name for DataSource
          davidjencks

          NO!

          The components are not serializable and why would you want to include an extra network hop on every db access?

          Set up a datasource in every vm you need one.

          • 2. Re: jndi Name for DataSource
            maouche

            Thanks,

            I have a complexe application running on several machines which I try to migrate on JBOSS2.4.4 and Tomacat Catalina 4.01.
            Two process of the application run under a JVM and do not need neither JBOSS nor Tomcat. But these two process require DBMS access.
            Web and ejb parts of the application are configured under JBOSS +Tomcat Catalina.

            The idee is use the Datasource JNDI name binded by JBOSS in one machine from an other machine without starting a second JBOSS server.

            • 3. Re: jndi Name for DataSource
              davidjencks

              Do you have distributed transactions spanning several of your servers/vms? Do you need a transaction manager on the non-jboss nodes?

              Why not set up micro-jbosses on the "non-jboss" machines that include naming and db support, and the tx manager if you need it, and nothing else, and run your apps on these nodes as mbeans in jboss?

              If you do need distributed tx use Tyrex rather than the default tx manager.

              • 4. Re: jndi Name for DataSource
                maouche

                I agree for this solution.
                I will start my processes under micro-jbosses with Tyrex as transaction Manager.

                Thanks a lot.