See the
org/jboss/test/jbossmx/implementation/server/ContextCLT
estCase that demonstrates two issues with the current
implementation.
1. The ClassLoader passed in to the createMBean
operation is not set as the Thread context class
loader for the mbean ctor, and so, the ctor fails.
2. The ClassLoader passed in to the createMBean
operation is not set as the Thread context class
loader for operations on the MBean and so interaction
with MarshalledObject fails.
Both of these need to work in order for the 3.0
release to be able to use the jmx implementation with
the new class loader architecture.
Logged In: YES
user_id=175228
The original unit test was not demonstrating the real issue
seen with Bug#516649. It has been updated to correctly
demonstrate the problem.
Logged In: YES
user_id=9459
This should be fixed for your test.
I'll add some more tests for all the different methods
later. e.g. get/setAttribute(), instantiate(), etc.
Scott, if you are happy, do you want to close this, or wait
until all the tests have been written?
Regards,
Adrian