After a lot of digging, I eventually found that the magic that I was looling 
for  was a mechanism of establishing the credentials that the resource adapter 
needed to access the other, protected EJBs.

The relevant code is shown here:

String systemName      = System.getProperty("systemName");
String systemPassword   = System.getProperty("systemPassword");
                
org.jboss.security.SecurityAssociation.setPrincipal(new 
org.jboss.security.SimplePrincipal(systemName));
            
org.jboss.security.SecurityAssociation.setCredential(systemPassword.toCharArray());
 
where the systemName and systemPassword are read as system properties.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895900#3895900

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895900


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to