Passing call context information to stateless session beans

Discussions

EJB design: Passing call context information to stateless session beans

  1. Hi,

    I have a session bean with a bunch of business methods. Each time a client calls these methods, they have to somehow pass in some call context information to the session bean. Since different bean instances can serve each method call, the context info can't be cached in the bean in between method calls.

    What is the best pattern to solve this problem? Is passing in the context info with each method invocation the only viable solution?

    thanks

    mg
  2. I'm assuming you've been using stateless session beans, how about stateful ones, which allows you to have state and store your context?

    --
    Tinou Bao
    www.tinou.com