This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153626

Summary: Need support for several Java DB servers
Product: db Reporter: Roman Mostyka <romanmostyka>
Component: DerbyAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: blocker CC: davidc, terje7601
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Roman Mostyka 2008-11-21 10:45:02 UTC
Now only one Java DB server can be added to the DB explorer. We need to have ability to work with several differents
Java DB servers.
Comment 1 Jiri Rechtacek 2009-10-16 14:04:25 UTC
Reassigned to new owner.
Comment 2 terje7601 2014-09-26 09:38:42 UTC
I would also like the possibility to register multiple Java DB servers, with the possibility to choose one as the default. This default would be used when making "Java DB (Embedded)" connections.

Under properties:

* I would like a combobox on top, containing all registered Java Platforms / Servers. Selecting an entry here, would automatically fill in the Java DB Installation / Database Location properties with reasonable defaults:
for Java Platforms: the Java DB that comes with the JDK + the current default of C:\Users\me\.netbeans-derby
for Servers (in particular GlassFish): the Java DB that comes with GlassFish + the GlassFish default of as-install\databases (where as-install is something like C:\glassfish4\glassfish)

* there should also be a property "Port", allowing to run multiple servers concurrently
Comment 3 terje7601 2016-06-03 06:59:05 UTC
(In reply to terje7601 from comment #2)
> * I would like a combobox on top, containing all registered Java Platforms /
> Servers. Selecting an entry here, would automatically fill in the Java DB
> Installation / Database Location properties with reasonable defaults:
> for Java Platforms: the Java DB that comes with the JDK + the current
> default of C:\Users\me\.netbeans-derby
> for Servers (in particular GlassFish): the Java DB that comes with GlassFish
> + the GlassFish default of as-install\databases (where as-install is
> something like C:\glassfish4\glassfish)

You can ignore the quoted part: Java DB has been removed in Java 9 ( https://bugs.openjdk.java.net/browse/JDK-8080959 ), and - once this issue is fixed - registering a GlassFish server should automatically register its embedded Java DB instance as well.