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 94132

Summary: New DB connection added while resolving missing database connections is not connected in DB Explorer
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: John Baker <jbaker>
Status: RESOLVED FIXED    
Severity: blocker CC: sakthivelg, sjangity
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 98376    
Bug Blocks:    

Description bugbridge 2007-02-02 21:06:17 UTC
Original submitter: sakthivelg

Description: (sakthivelg)
shortfin build 060929_4 on sparc

+ Opened up a project that uses datasources that are not configd in IDE
+ Go a warning badge for resolve missing database connections
+ Added the driver and database connection
+ Warning badge goes off! Good!
+ the new database connection added via Edit Db Server Type and Add data
connection is NOT connected in the DB Explorer

Evaluation: (jbaker)
This is not a bug.  This is how NetBeans works.  After adding a connection in 
NetBeans it works the same.  All the user has to do is right-click then add a
connection to dnd more tables or other operations if needed

Evaluation (Entry 2): (jbaker)
I might be able to use the connect() method
as long as my IDE comes back to life

Evaluation (Entry 3):
There is no package public way to connect to the database through the API.
getConnection doesn't connect.

 /**
     * Adds a new connection to Database Explorer. This method does not display
any UI and
     * does not try to connect to the respective database.
     */

I'll ask NB team
Comment 1 John Baker 2007-03-01 02:10:14 UTC
plan on fixing for M8
Comment 2 John Baker 2007-03-16 17:38:48 UTC
part of migration for M9
Comment 3 John Baker 2007-05-17 22:38:47 UTC
to be fixed in 6.0
Comment 4 John Baker 2007-07-19 00:18:57 UTC
This has been fixed as part of the feature redesign in 6.0

Now the connection added and connected.