I am writing an MBean which should access my deployed EJBs. However, when I invoke my EJBs from it I get
java.lang.SecurityException: Authentication exception, principal=null
so, assuming that a login is necessary, I carried out a standard JAAS client login from my MBean like this
LoginContext loginContext = new LoginContext( "myDomain", new MyCallbackHandler("userAccoutn", new char[]{'1', '2', '3', '4'}) );
where “userAccount” is a user account I normally use for logging into my “myDomain” in JBoss.
This, however, does not work. I still get the authentication exception above. Is this approach incorrect? Is there a special login API for MBeans running inside JBoss, other than JAAS? Can you disable login requirements for MBeans?
Any help will be highly appreciated.
Randahl
|
- Re: [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- Re: [JBoss-user] How to log in from an MBean Scott M Stark
- RE: [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- Re: [JBoss-user] How to log in from an M... Scott M Stark
- RE: [JBoss-user] How to log in from ... Randahl Fink Isaksen
- Re: [JBoss-user] How to log in ... Scott M Stark
- RE: [JBoss-user] How to log... Randahl Fink Isaksen
- Re: [JBoss-user] How to... Scott M Stark
- RE: [JBoss-user] How to... Randahl Fink Isaksen
- RE: [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- RE: [JBoss-user] How to log in from an MBean Kevin Conner