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 51844

Summary: Check JNDI name in Choose Database window
Product: javaee Reporter: Petr Blaha <blaha>
Component: EJBAssignee: Rajeshwar Patil <rajeshwarpatil>
Status: CLOSED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Petr Blaha 2004-11-25 13:54:45 UTC
[Build 20041124]
Steps:
1) open servlet or class in EJB project
2) in editor invoke Enterprise Resource | Use Database
3) in new window user can enter Data Source JNDI
Name. User doesn't know whether the name is with
jdbc prefix or without.
In case a user enters jdbc/myDatabase name, the
private javax.sql.DataSource getJdbc/myDatabase()
method is created and then gets compilation error.
We should add a check of the JNDI name.
Comment 1 Rajeshwar Patil 2005-03-11 08:06:10 UTC
Files Modified:
org/netbeans/modules/j2ee/ejbjarproject/EnterpriseReferenceContainerImpl.java
new revision: 1.9; previous revision: 1.8

org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/UseDatabaseAction.java
new revision: 1.5; previous revision: 1.4



Fix for defining new data source(sun resources & sun dd entries) on         
<Use Database> action with new data-source jndi name.

Fix for defining new data source(sun resources & sun dd entries) on         
<Use Database> action after restart of ide.

Comment 2 Petr Blaha 2005-03-21 13:24:36 UTC
[Build 20050320]