4 Replies Latest reply on Aug 13, 2005 2:13 PM by bossbean

    Bind address for hypersonic

    bossbean

      Anyone know how to set the bind address for hypersonic. It doesn't seem to respond to '-Djboss.bind.address ' or '-b ' and when i tried using 'BindAddress' and/or 'Host' mbean attributes i got the following...

      INFO [ServiceConfigurator] Problem configuring service jboss:service=Hypersonic
      org.jboss.deployment.DeploymentException: No Attribute found with name: BindAddress


      INFO [ServiceConfigurator] Problem configuring service jboss:service=Hypersonic
      org.jboss.deployment.DeploymentException: No Attribute found with name: Host

        • 1. Re: Bind address for hypersonic
          starksm64

          We don't run hypersonic with a socket binding. It only runs with an inmemory mode by default.

          • 2. Re: Bind address for hypersonic
            bossbean

            However there seems to be an optional configuration to bind it to a socket in the HS deployment file hsqldb-ds.xml. I was wondering if someone did attempt to use this configuration, how you would bind it to a specific address. As mentioned before the following will not work..


            ...
            <connection-url>jdbc:hsqldb:hsql://127.0.0.1:1701</connection-url>
            ...

            127.0.0.1
            1701
            true
            default
            false
            true


            with the aformentioned error. And 'Host' will not work either.

            thanks

            • 3. Re: Bind address for hypersonic
              bossbean

              Oops that code was parsed out. try this:


              ...
              <connection-url>jdbc:hsqldb:hsql://127.0.0.1:1701</connection-url>
              ...

              127.0.01
              1701
              true
              default
              false
              true


              • 4. Re: Bind address for hypersonic
                bossbean

                Last time. heh. It a learning experience:)

                <datasources>
                ...
                <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
                ...
                <mbean code="org.jboss.jdbc.HypersonicDatabase"
                 name="jboss:service=Hypersonic">
                 <attribute name="BindAddress">127.0.0.1</attribute>
                 <attribute name="Port">1701</attribute>
                 <attribute name="Silent">true</attribute>
                 <attribute name="Database">default</attribute>
                 <attribute name="Trace">false</attribute>
                 <attribute name="No_system_exit">true</attribute>
                 </mbean>