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 - Check JNDI name in Choose Database window
Summary: Check JNDI name in Choose Database window
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2004-11-25 13:54 UTC by Petr Blaha
Modified: 2006-03-24 13:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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]