0 Replies Latest reply on Mar 6, 2006 3:50 PM by Patricio Munoz

    passing user information to session beans

    Patricio Munoz Newbie

      I have a stateful session bean containing user (client) information which is used for authentication purposes on every method in other session beans. Should i pass the user session bean as a parameter on every method, or should i make the other beans stateful too and set the user information only once (passing it as a parameter in the ejbCreate method)?

      Which is best, having all stateful session beans or having to pass a reference to another session bean as a paramenter in every method call? Is there a more appropiate solution to this problem?