EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EZB-291
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Guillaume Sauthier
Reporter: Eric Glass
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
EasyBeans

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

Created: 29/Jul/08 07:53 PM   Updated: 01/Aug/08 03:25 PM
Component/s: Core
Affects Version/s: EasyBeans 1.1.0
Fix Version/s: EasyBeans 1.1.0 M1

Environment: Red Hat Enterprise Linux 5.2


 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.

 All   Comments   Change History   Related Builds      Sort Order:
Guillaume Sauthier - 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.

Eric Glass - 30/Jul/08 02: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;

Guillaume Sauthier - 30/Jul/08 03: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.

Guillaume Sauthier - 30/Jul/08 05: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.


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org