Re: fine grained security with SubjectTrackingMBeanSe rver example
Alper Akture <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <DB67197B2E16D411831E00508B71566902622ED6@caysapp001.intersperse.com> |
I have not tried 1.4 with MX4J yet, sorry, I didn't notice it was The Sun RI in my trace. I'll try it, and post the results. Alper -----Original Message----- From: Simone Bordet [mailto:[email protected]] Sent: Wednesday, June 28, 2006 1:11 AM To: [email protected] Subject: Re: [Mx4j-user] fine grained security with SubjectTrackingMBeanServer example 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 _______________________________________________ Mx4j-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mx4j-user 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