I'm not sure I understand what you are doing.

The setSomeURL(String) should be invoked with the
MBean's context classloader, regardless of which thread
initiates the invocation.
This works for me, including inside a <loader-repository>

Can you try
log.info(Thread.currentThread().getContextClassLoader());
at the start of your setSomeURL method.

Alternatively,
if you look at the MBean JMImplementation:type=MBeanRegsitry
there is a getValue operation.
Type your object name and "org.jboss.mx.classloader" in the key.
It will tell you the MBean's context classloader.

Regards,
Adrian

>From: Michael Bartmann <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] JMX and ear-scope
>Date: Thu, 12 Sep 2002 15:03:15 +0200
>
>Hi Adrian,
>
>Your workaround sounds ok, but I have some 20 ear-scoped applications, with
>the same single offending method in each, so I decided to stay with my 
>serialization
>"below the API" with a byte[] arg. (I can do this by myself, but the 
>management
>GUI is written by Mehrdad (remember him?), and I don't wan't to bother him
>with like managing 20 different Adaptors...8-)
>
>But now I came around another problem with this classloading deficiency:
>
>I have quite some management methods of the type "setSomeURL(String x)",
>which are typically with a default setting like "ressource:someFile.xml", 
>which
>points to a file inside the ear.
>
>The setters are implemented through TCL, and so these setters fail, even 
>when
>the provided String is the same as previously obtained through the getter.
>(Pressing the "Apply"-Button on the console)
>
>I probably should save a copy of the TCL during create() or even use the
>(banned!) Class.forName. Or do we have a standard method to obtain the
>MBean classloader at runtime from another Thread (beside looking up the
>UCL throgh JMX)?
>
>Thank you,
>Michael
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to