Skip to Content
avatar image
Former Member

Stateful Session Beans

I have an application in webdynpro which uses a webservice from XI.I need to keep track of activities of a particular user and display them when the user logs in again.Can Stateful session beans help implement this? If yes how?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 14, 2006 at 05:47 PM

    Hi Bhavana,

    Stateful Session Beans is OK in this situation but only as service layer. You also need to think about persistency layer. So, CMP Entity Bean, JDO or JDBC would be a good choice for this.

    Best regards, Maksim Rashchynski.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Maksim Rashchynski


      Pls note that HTTP session id keeps changing every time a user login. So you can't identify a user using session id of previous login. You can use 2 ways to store this

      1. Application level scope

      store the details in a java object(collection) currespoding to a user id(login id) in application scope, not session scope

      2. Use database tables to store the details once user logout.

      Hope it helps