[jboss-user] [JBoss Seam] - Re: Seam Security
petemuir
do-not-reply at jboss.com
Fri Feb 16 06:00:38 EST 2007
I use this:
@Name("org.jboss.seam.security.identity")
| public class Identity extends org.jboss.seam.security.Identity {
|
| ...
|
| public static Identity instance() {
| if ( !Contexts.isSessionContextActive() ) {
| throw new IllegalStateException("No active session context");
| }
|
| Identity instance = (Identity) Component.getInstance(Identity.class, ScopeType.SESSION, true);
|
| if (instance == null) {
| throw new IllegalStateException("No Identity could be created");
| }
| return instance;
| }
| }
(Running from CVS from earlier this week)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017544#4017544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017544
More information about the jboss-user
mailing list