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 57812 - Child modules remain registered in app after removing
Summary: Child modules remain registered in app after removing
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-04-13 07:54 UTC by Martin Adamek
Modified: 2006-05-30 11:18 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 Martin Adamek 2005-04-13 07:54:27 UTC
In EAR project properties (Packaging - I hope it's correct way to remove child
modules) remove modules. ProjectEar.getChildModuleProviders() still returns all
of them. 
Can be easy reproduced with Call EJB dialog:
1. create Enterprise app wit EJB and Web module
2. create new Session bean with local interface
3. create new servlet
4. in servlet's code invoke Call Enterprise Bean action, you can select Session
bean and OK button is enabled.
5. Cancel dialog
6. In properties/packaging of application remove all modules
7. Invoke Call EJB in servlet once again, you can still select Session bean and
have enabled OK button
8. Restart IDE and try Call EJB from servlet once again, now everything is OK
Comment 1 Vince Kraemer 2005-04-13 17:45:32 UTC
forgot to remove the item/key from the map that holds the J2eeModuleProvider object.
Comment 2 Vince Kraemer 2005-04-20 23:17:39 UTC
j2ee/earproject/.../ProjectEar.java (rev 1.11)