• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Subject calling the remote session bean

 
joel mat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have to lookup an EJB deployed in JBoss(or any app server) in a remote machine.In the client side (stand alone) I am validating the user using jaas with my custom loginmodule(it just queries from the database).Is there a way to get the subject calling the EJB (or atleast the user name) from inside the remote ejb or else how can i pass the identity (username) of the user calling the bean to the remote ejb? If I use sessionContext.getCallerPrincipal().getName() its giving me anonymous.
Any help will be greatly appreciated..
Joel
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joel,

What's the issue? Is should be remote propagated on the EJB call if you are using JAAS?

Regards,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!