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 93495

Summary: Implement listener to notify when Java DB options are set
Product: db Reporter: John Baker <jbaker>
Component: DerbyAssignee: Libor Fischmeistr <lfischmeistr>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 95628    

Description John Baker 2007-01-30 02:28:09 UTC
This is a Sample database request.

For creating new Sample Java DB databases, the Java DB database and location 
settings must be set in Options first.  Currently the only way to detect when 
the Java DB settings have been set is at IDE startup.

Request is to add a listener that is accessible to the visualweb module
so that the Sample database APIs can be notified and create the sample
databases.
Comment 1 John Baker 2007-02-15 02:19:49 UTC
A little more explanation...

For Visual Web, a Travel database connection needs to be added.
The connection cannot be added until Java DB is registered.

Currently, 5.5 the only time to check if Java DB is registered is at IDE 
startup.  In other words, the IDE must be restarted after Java DB gets registered.

Ideally, it would be better if it was possible to be informed once Java DB is
registered so that the Travel database connection can be added.
Then once this connection is added the listener can be removed.
(This issue is to support this use case - implement a listener)

The use case of a user re-registering a different installation of Java DB
will not be supported by Visual Web.  If the user wants to install Travel
then this can be done by hand (an sql script is provided)
Comment 2 Jayashri Visvanathan 2007-03-29 21:20:22 UTC
This is not a must have for NB 6.0.
Comment 3 Jiri Rechtacek 2009-10-16 14:13:50 UTC
Reassigned to new owner.
Comment 4 matthias42 2016-03-16 20:08:03 UTC
The sample database was integrated into the context menu and if a JDK is present JavaDB is detected in most times automatically.

As Visual Web was also removed from netbeans closing this as WONTFIX.