[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: SecurityAssociation deprecated methods

anil.saldhana@jboss.com do-not-reply at jboss.com
Wed Jun 18 17:36:34 EDT 2008


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/resource/connectionmanager/BaseConnectionManager2.java
[/url]

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

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



More information about the jboss-dev-forums mailing list