Keeping hessian servlet session active with a rop client

From: emanuel..engozzi.com
Date: Tue Sep 14 2010 - 11:34:13 UTC

  • Next message: Andrus Adamchik: "Re: Keeping hessian servlet session active with a rop client"

    I've a swing application using cayenne ROP, i had problem with session
    timeout of the hessian servlet, so far in order to avoid long session
    timeout, i implemented a thread preforming the following:
       ....

        DataChannel channel;
       ....

        public void run() {

            for(;;)
            {

                this.channel.getEntityResolver();

                try {
                    Thread.sleep(120000);
                } catch (InterruptedException ex) {
                    Logger.getLogger(Instance.class.getName()).log(Level.SEVERE,
    null, ex);
                }
            }
        }

    it issue a bootstrap message every 12 seconds.

    I didn't find a better way to doit, using cayenne 2.

    I wonder, since im planning to switch the application to cayenne 3, for
    both Nested Context and Paginated queries for ROP, is there a better way
    to "ping" Hessian servlet to keep session active?



    This archive was generated by hypermail 2.0.0 : Tue Sep 14 2010 - 11:33:44 UTC