Re: MissingSessionException

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jan 22 2008 - 06:01:59 EST

  • Next message: Tore Halset: "Re: MissingSessionException"

    If this exception is to be caught on the client (and if it works), I
    suggest we move it to the "org.apache.cayenne.remote" package to
    indicate that it needs to be present on both server and client.

    Andrus

    On Jan 22, 2008, at 10:30 AM, Tore Halset wrote:

    > Hello.
    >
    > I think I added MissingSessionException on the serverside to support
    > the cocoa client. It is working for the cocoa client, but I do not
    > think I tested it with a normal java ROP client.
    >
    > - Tore.
    >
    > On Jan 22, 2008, at 9:17 , Aristedes Maniatis wrote:
    >
    >> OK, I've got one more client/server issue which arose when I
    >> upgraded our code to 3.0M3 and used the server/client Cayenne jars
    >> (I previously had the full jar at both ends).
    >> org.apache.cayenne.remote.service.MissingSessionException is not
    >> available on the client.
    >>
    >> We use it on the client like this to detect a lost connection:
    >>
    >> if (e.getCause() instanceof MissingSessionException) ....
    >>
    >>
    >> but this has never actually worked, so perhaps I've misunderstood
    >> its purpose.
    >>
    >> * should this be available on the client? I'd think that any
    >> exception which might be propagated across Hessian should be
    >> available on the client.
    >> * should it be working as I've used above?
    >>
    >>
    >>
    >> Cheers
    >> Ari
    >>
    >>
    >>
    >>
    >>
    >> -------------------------->
    >> ish
    >> http://www.ish.com.au
    >> Level 1, 30 Wilson Street Newtown 2042 Australia
    >> phone +61 2 9550 5001 fax +61 2 9550 4001
    >> GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >>
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Jan 22 2008 - 06:02:37 EST