EasyBeans

The HSQLDBComponent should allow the hostname to be configured; and use localhost as a default

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: EasyBeans 1.1.0
  • Fix Version/s: EasyBeans 1.1.0 M1
  • Component/s: Core
  • Description:
    Hide
    In some environments, like ours, localhost should not be used as the hostname for connecting to resources like a HSQLDB database. It would be nice to have the hostname configurable for the HSQLDBComponent, so that the HSQLDB connections do not have to use localhost. If there is no configuration supplied for hostname, then default to localhost.
    Show
    In some environments, like ours, localhost should not be used as the hostname for connecting to resources like a HSQLDB database. It would be nice to have the hostname configurable for the HSQLDBComponent, so that the HSQLDB connections do not have to use localhost. If there is no configuration supplied for hostname, then default to localhost.
  • Environment:
    Red Hat Enterprise Linux 5.2

Activity

Hide
Guillaume Sauthier added a comment - 30/Jul/08 12:09 PM
In the easybeans XML configuration file, you can change the JDBC URL, so that you can modify the hostname (wich is localhost by default I agree) to any other value you want.
Show
Guillaume Sauthier added a comment - 30/Jul/08 12:09 PM In the easybeans XML configuration file, you can change the JDBC URL, so that you can modify the hostname (wich is localhost by default I agree) to any other value you want.
Hide
Eric Glass added a comment - 30/Jul/08 2:31 PM
It was found that in the org.ow2.easybeans.component.hsqldb.HSQLDBComponent Java class that localhost is hard coded in the line 168 that creates the connection URL for testing the HSQLDB database and displaying an info message to the log. It would be nice if this line of code did not use the hard coded localhost, but the hostname from the easybeans XML configuration file; or with OSGI from the Configuration Admin Server Configuration. Here is the line in question.

String connURL = "jdbc:hsqldb:hsql://localhost:" + portNumber + "/" + databaseName;
Show
Eric Glass added a comment - 30/Jul/08 2:31 PM It was found that in the org.ow2.easybeans.component.hsqldb.HSQLDBComponent Java class that localhost is hard coded in the line 168 that creates the connection URL for testing the HSQLDB database and displaying an info message to the log. It would be nice if this line of code did not use the hard coded localhost, but the hostname from the easybeans XML configuration file; or with OSGI from the Configuration Admin Server Configuration. Here is the line in question. String connURL = "jdbc:hsqldb:hsql://localhost:" + portNumber + "/" + databaseName;
Hide
Guillaume Sauthier added a comment - 30/Jul/08 3:16 PM
Sorry, I answered too fast, I assumed that your were talking of the JDBC URLs that you can manage with the JDBC Pool Component.

HSQL can be configured to select the inet-address to be used for port listening, so that will be easy to add that configuration option.
Show
Guillaume Sauthier added a comment - 30/Jul/08 3:16 PM Sorry, I answered too fast, I assumed that your were talking of the JDBC URLs that you can manage with the JDBC Pool Component. HSQL can be configured to select the inet-address to be used for port listening, so that will be easy to add that configuration option.
Hide
Guillaume Sauthier added a comment - 30/Jul/08 5:14 PM
This change has nothing to do with OSGi finally.

I will update the hsqldb component and mapping files to support a new attribute allowing definition of the host to be used.
Show
Guillaume Sauthier added a comment - 30/Jul/08 5:14 PM This change has nothing to do with OSGi finally. I will update the hsqldb component and mapping files to support a new attribute allowing definition of the host to be used.

People

Dates

  • Created:
    29/Jul/08 7:53 PM
    Updated:
    01/Aug/08 3:25 PM
    Resolved:
    01/Aug/08 3:25 PM