Trying to attach a zip...
Ok... Making progress here.
I needed to add ejb-ref tags in my web.xml and jboss-web.xml deployment descriptors.
I am still having a "CallerPrincipal" problem.
I am using the DatabaseLoginModule with this:
<module-option name = "rolesQuery">SELECT 'SARVER_caller', 'CallerPrincipal' FROM DUAL UNION Select 'Echo' role, 'Roles' rolegroup From Person where SEARCHNAME =?</module-option>
That bogus CallerPrincipal select automatically populates my CallerPrincipal role... which is nice, but I want to do that in my code.
With the "rolesQuery" statement like that - it seems to work. If I remove that select, I am back to CallerPrincipal=null.
Some JBoss documentation states that is this role is not populated, then the SessionContext CallerPrincipal defaults to the applications' callerPrincipal - something like that...
Apparently this is not the case....or I have to do something in my code to populate the CallerPrincipal role and associate that role with the SessionCOntext.
How the heck do i do that?