User: ejort
Date: 01/12/30 00:59:16
Modified: src/main/org/jboss/invocation/jrmp/interfaces
JRMPInvokerProxy.java
Log:
Fixed the security unit tests.
Revision Changes Path
1.2 +10 -4
jboss/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxy.java
Index: JRMPInvokerProxy.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxy.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JRMPInvokerProxy.java 2001/12/19 07:07:46 1.1
+++ JRMPInvokerProxy.java 2001/12/30 08:59:16 1.2
@@ -22,6 +22,8 @@
import org.jboss.invocation.Invoker;
import org.jboss.invocation.local.LocalInvoker;
+import org.jboss.security.SecurityAssociation;
+
import org.jboss.tm.TransactionPropagationContextFactory;
/**
@@ -29,7 +31,7 @@
* JRMPInvokerProxy, local to the proxy and is capable of delegating to local and
JRMP implementations
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.1 $
+* @version $Revision: 1.2 $
*
* <p><b>2001/11/19: marcf</b>
* <ol>
@@ -71,7 +73,7 @@
//Local invoker reference, useful for optimization
public static Invoker getLocal() { return localInvoker;}
public static void setLocal(Invoker invoker) { localInvoker = invoker ;}
-
+
// TPC factory
public static void setTPCFactory(TransactionPropagationContextFactory tpcf) {
tpcFactory = tpcf; }
@@ -125,7 +127,11 @@
public Object invoke(Invocation invocation)
throws Exception
{
-
+
+ // Pass the current security information
+ invocation.setPrincipal(SecurityAssociation.getPrincipal());
+ invocation.setCredential(SecurityAssociation.getCredential());
+
// optimize if calling another bean in same EJB-application
if (isLocal()) {
@@ -205,4 +211,4 @@
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
-}
\ No newline at end of file
+}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development