[ mx4j-Bugs-859086 ] RelationService.getRelation not setting m_proxy
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #859086, was opened at 2003-12-12 18:38 Message generated for change (Settings changed) made by shadow12 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=859086&group_id=47745 Category: JMX implementation Group: Release 1.1.1 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Bronwen Cassidy (shadow12) Summary: RelationService.getRelation not setting m_proxy Initial Comment: From: [email protected] In RelationService.getRelation, under the condition where relationId corresponds to an ObjectName, the member m_proxy seems like it should be set to a proxy corresponding to the passed relationId, e.g. m_proxy = (RelationSupportMBean)StandardMBeanProxy.create (RelationSupportMBean.class, m_server, (ObjectName) this.m_relationIdToRelationObject.get(relationId)); This means that getRelation will return a proxy for the last Relation to be passed to RelationService.addRelation. The problem can be demonstrated by doing the following: Call RelationService.addService passing an object name of a Relation with a set of roles. Call RelationService.addService passing an object name of another relation with a different set of roles. Call RelationService.getAllRoles passing the relation id of the second relation added. You will see that the roles returned are actually those of the first relation added. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=859086&group_id=47745 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click