Kindof, I have to see what I am doing wrong because its not re-creating the
session. Or maybe I am thinking of this wrong. Currently I only implemented
login, we haven't defined the permissions on the rest of the system and the
part that is working doesn't really have any security. So for a few calls I
do call                 

Subject currentUser = SecurityUtils.getSubject(); 
if(Util.isNull(currentUser)) throw new IllegalStateException("There is no
current user logged in");
Long userId = (Long)currentUser.getPrincipal();
if(Util.isNull(userId)) throw new IllegalStateException("Current user id was
not found");
User user = this.find(userId);


and this works fine so long as I haven't let my session expire. If it does
then I no longer have the userId.

Its late and I am guessing I am about to say a "duh" but I have a blind spot
on this right now. 

Brian

-- 
View this message in context: 
http://shiro-user.582556.n2.nabble.com/SessionListeners-with-Spring-and-a-Swing-Desktop-tp5715272p5731166.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to