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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user