2 Replies Latest reply on Mar 2, 2007 7:21 PM by lle

    explicit conversation id issue

    lle

      Hi all,

      I am trying to begin a conversation with an explicit id sent as a HTTP request param.
      In my conversation-scoped bean, i have the following code:

      @RequestParameter
      private String conversationId;
      
      @Begin(id="#{conversationId}",join=true) @Create
      public String findSessions() {
      ...
      }
      


      When I debugged, it seems that the conversationId was injected. However, my conversation was started with an empty conversationId.
      Does any of you know why? What should I do to fix this? If I start the conversation through Java code, how can I assign it an explicit Id?

      Thanks
      ly

        • 1. Re: explicit conversation id issue
          gavin.king

           

          @Begin(id="#{param.conversationId}",join=true) @Create
          public String findSessions() {
          ...
          }


          • 2. Re: explicit conversation id issue
            lle

            Thanks Gavin.
            It worked. I got confused when saw this in the documentation of 1.1.5GA


            @Begin(id="entry#{params['blogId']}")
            ...


            So, I thought that's how to access the id in request param. I guess either I misunderstood the example or it is wrong in the documentation.

            Appreciate your response.
            ly