[jboss-dev-forums] [EJB3 Development] - Problem keeping a user logged between threads
Mario Bislick
do-not-reply at jboss.com
Wed Mar 30 19:06:12 EDT 2011
Mario Bislick [http://community.jboss.org/people/kitome] created the discussion
"Problem keeping a user logged between threads"
To view the discussion, visit: http://community.jboss.org/message/596638#596638
--------------------------------------------------------------
Hey everyone! First of all I am new using JBoss and wasn't sure if this was the right place where to put my qustion so I apologize if it wasn't.
I have an application that is autheticating using JAAS against a database, the queries are fine and it actually authenticates the user using a setSimple(userLogin, pwd). The client has its domain defined and some of the class functions can only be accessed if the user has the appropiate roles. The problem is that once I authenticate the user in the main thread, it seems like if i have to authenticate again in each of the child threads of the client, calling it the function I use to authenticate with a null user and a null pasword (thus throwing an exception)
I think that theres gotta be someway for the server/client to remember that the user is actually authenticated so it wont be authenticated more than once in each thread of the application. Is that actually paussible? Or how do I prevent the server/client from doing it after I authenticated the user the first time?
There is no logout call in the code other than the one I use if the (userLogin, pwd) combination is invalid.
Hope anyone can help me with this.
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596638#596638]
Start a new discussion in EJB3 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110330/283be31b/attachment.html
More information about the jboss-dev-forums
mailing list