aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes New Thread authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "New Thread authentication" Watch "New Thread authentication" New topic
Author

New Thread authentication

Jan Kostelansky
Greenhorn

Joined: Nov 24, 2005
Posts: 11
How to authenticate new thread for accessing EJB?
When a request object is created it gets security credentials based on how user is logged in. It is possible to access EJB�s in that thread
However if a new thread is created, it does not inherit security credentials from request thread.
Is there any way, how to create new working Thread, which inherits security credentials of current request thread?


Jan
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

You will have to a JAAS login from the thread to access that secure bean. However why are creating/using a Thread to access a bean? Providing more details about your usecase will let us help you better


[My Blog] [JavaRanch Journal]
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Wich EJB version you�re using?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: New Thread authentication