In JBAS5, you can inject a SubjectFactory and forget about internal details of security.
| private Subject getSubject()
| {
| Subject subject = null;
| if(subjectFactory != null && securityDomainJndiName != null)
| {
| subject = subjectFactory.createSubject(securityDomainJndiName);
| }
| if (trace)
| log.trace("subject: " + subject);
| return subject;
| }
|
as in
[url]
http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss...
[/url]
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159110#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...