Ok, here we go:
We have a custom login-module for the remoting connector and another custom LoginModule for EJB Security Domain:
| <security-realm name="ApplicationRealm"> |
| <authentication> |
| <jaas name="jas-remote"/> |
| </authentication> |
| </security-realm> |
| <security-domains> |
| <security-domain name="jas-remote" cache-type="default"> |
| <authentication> |
| <login-module code="com.os.ee.security.jboss.JBoss7RemotingLoginModule" flag="optional"/> |
| </authentication> |
| </security-domain> |
| <security-domain name="jas" cache-type="default"> |
| <authentication> |
| <login-module code="com.os.ee.security.jboss.JBoss7ServerLoginModule" flag="required"/> |
| </authentication> |
| </security-domain> |
The caching with the remote connection seems to work, i see authentication only once per connection. Only securityDomain 'jas' is called everytime.