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 61981 - JBJ2eePlatformFactory should cache instance of J2eePlatformImpl
Summary: JBJ2eePlatformFactory should cache instance of J2eePlatformImpl
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 14:33 UTC by Martin Adamek
Modified: 2005-09-07 09:44 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-08-09 14:33:57 UTC
Currently there is always new instance of J2eePlatformImpl created and it is
possible risk for attached listeners and currently it's causing inconsistencies
in wizard - there is different set of libraries displayed in Server Manager and
in project's libraries view right after adding new server instance. Things are
OK after restart. It is caused by the fact that some code is asking for instance
properties BEFORE instance is returned from wizard iterator's instantiate() method!
Comment 1 Martin Adamek 2005-08-09 15:24:25 UTC
See related issue 61985
Comment 2 Pavel Buzek 2005-08-12 16:55:25 UTC
I will do the same caching as tomcat does.

Properties are not initialized when the platform is created but this can be
solved by listening for changes in InstanceProperties and adding the additional
libraries when the property "server" is available. I think that 61985 is not
needed. Only a small fix in InstanceProperties (concurrent modification in
fireProprtyChange, can be solved by cloning the listeners before it iterates
over them).
Comment 3 Pavel Buzek 2005-08-14 03:16:58 UTC
fixed as described above
Comment 4 Michal Mocnak 2005-09-07 09:44:46 UTC
Verified in trunk