Re: [JBoss-dev] UnifiedClassLoader notifications?
A loader repository sends a "jboss.mx.class.removed" event type with a message value equal to the class name for each class being removed when a class loader is removed from the repository. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Dain Sundstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 11:13 PM Subject: [JBoss-dev] UnifiedClassLoader notifications? > Can I register with a UnifiedClassLoader for a notification when the > class loader is dereferenced by JBoss? I'm writing an object copier > service for the new persistence engine and cache, so I'm holding on to > some metadata for each class that can be copied. > > -dain --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] UnifiedClassLoader notifications?
What about the entire UCL itself? In AOP I have a Javassist type object that is paired with each UCL that I need to cycle when the UCL is done. Right now I have explicit calls in the ULR code to trigger this. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Scott > M Stark > Sent: Thursday, March 06, 2003 3:24 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-dev] UnifiedClassLoader notifications? > > > A loader repository sends a "jboss.mx.class.removed" event type with a > message value equal to the class name for each class being removed > when a class loader is removed from the repository. > > > Scott Stark > Chief Technology Officer > JBoss Group, LLC > > > - Original Message - > From: "Dain Sundstrom" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 05, 2003 11:13 PM > Subject: [JBoss-dev] UnifiedClassLoader notifications? > > > > Can I register with a UnifiedClassLoader for a notification when the > > class loader is dereferenced by JBoss? I'm writing an object copier > > service for the new persistence engine and cache, so I'm holding on to > > some metadata for each class that can be copied. > > > > -dain > > > > --- > This SF.net email is sponsored by: Etnus, makers of TotalView, > The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on > major UNIX > and Linux platforms. Try it free. www.etnus.com > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] UnifiedClassLoader notifications?
Change these calls to JMX notifications of type "jboss.mx.classloader.removed" in the removeClassLoader(ClassLoader) method. This is already done for additions of UCLs: public LoaderRepository registerClassLoader(UnifiedClassLoader ucl) { addClassLoader(ucl); Notification msg = new Notification(CLASSLOADER_ADDED, this, getNextSequenceNumber()); msg.setUserData(ucl); broadcaster.sendNotification(msg); return this; } Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Bill Burke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 2:43 PM Subject: RE: [JBoss-dev] UnifiedClassLoader notifications? > What about the entire UCL itself? In AOP I have a Javassist type object > that is paired with each UCL that I need to cycle when the UCL is done. > Right now I have explicit calls in the ULR code to trigger this. > > Bill --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development