Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 54187 invoked from network); 23 Nov 2004 16:22:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Nov 2004 16:22:41 -0000 Received: (qmail 6278 invoked by uid 500); 23 Nov 2004 16:22:36 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 6245 invoked by uid 500); 23 Nov 2004 16:22:35 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 6228 invoked by uid 99); 23 Nov 2004 16:22:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 23 Nov 2004 08:22:32 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id iANGMIZD003280 for ; Tue, 23 Nov 2004 17:22:18 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id iANGMI7q003278; Tue, 23 Nov 2004 17:22:18 +0100 Date: Tue, 23 Nov 2004 17:22:18 +0100 Message-Id: <200411231622.iANGMI7q003278@ajax.apache.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32362] New: - AttributeChangeNotification sent before attribute changes X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32362 Summary: AttributeChangeNotification sent before attribute changes Product: Commons Version: 4.0 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: blocker Priority: P1 Component: Modeler AssignedTo: commons-dev@jakarta.apache.org ReportedBy: EXTERNAL.Z19PMOUA@decathlon.com I don't know if it's a bug, but in the class org.apache.commons.modeler.BaseModelMBean, the Notification that an attribute value changed is sent before the value changes (The developer seemed to have a doubt // XXX Is it before or after ?), so I have the following problem. I have an MBean that extends BaseModelMBean and implements NotificationListener to get informed of modification on the ManagedResource, but since the notification is sent before the value is modified, I can't rely on the state of the managed resource. Furthermore, in the Javadocs, they say: It's up to the MBean owning the attribute of interest to create and send attribute change notifications when the attribute change occurs And for ATTRIBUTE_CHANGE => Notification type which indicates that the observed MBean attribute value HAS CHANGED. The JAR Version is : Implementation-Version: 1.1.0 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org