Can we propagate Security Subject from web Container to
Ejb container?If yes which are the necessary policy,permission or any addition setting required in Glass Fish. Because I have developed one "J A A S application" in net beans, server is Glass Fish.But still I can't able to get subject at bean level where in
Servlet I am getting subject through logincontext and through same servlet I am calling bean method.where I want to take the principal using Session Context Object.But it's coming Anonymous.what is the problem here.