Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New Thread authentication

 
Jan Kostelansky
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wich EJB version you�re using?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic