Re: fine grained security with SubjectTrackingMBeanServer example
"Simone Bordet" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 6/28/06, Alper Akture <[email protected]> wrote: > I'm trying to do fine grained security using a JMXAuthenticator, and an > MBeanServerForwarder as in the mx4j SubjectTrackingMBeanServer example. It > seems to work fine when I do an mBeanServerConnection.createMBean() call, > but not when I do a mBeanServerConnection.addNotificationListener() call. I > do both calls in one method of a unit test. I can see in > SubjectTrackingMBeanServer that the Subject is set properly for the > createMBean() call, but Subject is null for the addNotificationListener call > (causing the trace below). As you can see from the stack trace, the JMX implementation is not MX4J, but Sun's RI, shipped in JDK 5 (which you're probably using since you're using generics). You may have found a JDK bug. Have you tried to run this example in JDK 1.4 and using MX4J ? Simon -- http://bordet.blogspot.com Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642