2 Replies Latest reply: Nov 17, 2011 8:06 AM by stab RSS

    How to get hold of sessionId using Errai-bus

    stab Newbie

      Hi,

       

      I'm building an app using errai-bus with authentication to a database and want to verify further communication with sessionId.

      How can I get hold of the sessionId in a callback-method at the server.

       

      Tried this:

      public void callback(Message message) {

         request = this.getThreadLocalRequest();

        request = this.getThreadLocalRequest();

        session = request.getSession();

        sessionId = session.getId();

       

      but get an error at  request = this.getThreadLocalRequest();

       

      Regards

      stab