IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Session data and JSF scopes

    Posted Tue June 10, 2008 09:05 AM

    Is there a way to keep some CAF user session data from the point they log on to the point they log off? ideally I’d like to pass some user session data between portlets.

    If I understand correctly JSF scopes application scope lasts from server startup to shutdown and session scope is only the life of the portlet. Unless I’m missing it there doesn’t seem to be a user session scope. I’m assuming if this is the case it’s a restriction of JSF and not CAF per se.

    Kind regards


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: Session data and JSF scopes

    Posted Thu June 12, 2008 02:09 PM

    Nial,

    While I am not a dev expert, it sounds like you are looking for something like this:

    Session (pageflow) Scope


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: Session data and JSF scopes

    Posted Fri June 13, 2008 03:42 AM

    Thanks - its a start.

    Is there a guide to using the session scope i.e. reading / writing data. I see in designer you can add a managed bean, content provider or data object. I’m not clear how you would use these.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 4.  RE: Session data and JSF scopes

    Posted Fri June 13, 2008 11:09 AM

    You can access managed beans using resolveExpression from BasePageView. For any other item in the session you can use PortalServlet.getCurrentRequest().getSession() for accessing sessions.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 5.  RE: Session data and JSF scopes

    Posted Fri June 13, 2008 11:09 AM

    You can access managed beans using resolveExpression from BasePageView. For any other item in the session you can use PortalServlet.getCurrentRequest().getSession() for accessing sessions.


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods