Hi All!
I am using JBoss 3.2.3.
I am trying to invoke an MBean method from a secured Stateless Session Bean. For
example:
beanMethod() {
...
RMIAdaptor server = ...
...
System.out.println("PRINCIPAL BEFORE MBEAN METHOD CALL = " +
SecurityAssociation.getPrincipal())
server.invoke(...);
System.out.println("PRINCIPAL AFTER MBEAN METHOD CALL = " +
SecurityAssociation.getPrincipal())
...
}
I am getting two following lines:
PRINCIPAL BEFORE MBEAN METHOD CALL = user
PRINCIPAL AFTER MBEAN METHOD CALL = null
So, MBean method invocation destroys SecurityAssociation!!! And I can not call another
secured EJBs in businessMethod() after MBean call.
HELP ME PLEASE!
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826841#3826841">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826841>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user