Re: [semi-OT]: 3-layer app with cayenne?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Aug 27 2003 - 11:35:25 EDT

  • Next message: Brad Messerle: "Re: Semi New User Question."

    On Tuesday, August 26, 2003, at 09:52 AM, Tore Halset wrote:

    > Hello!
    >
    > I am using cayenne with tapestry to create a web application, but my
    > next
    > project will be a three-layer application. Data in the database, some
    > logic on the serverside and some logic in a client side java
    > application.
    >
    > Are you using web services for communication between the client and the
    > server? It would be *so* very nice to be able to access the serverside
    > cayenne objects with relations from the client.
    >
    > In Apple WebObjects Java Client it is possible to specify the
    > properties
    > in the OR-world that should be accessible from the client. Pretty nice.
    > What are the alternatives? Pro/cons?

    Hi Tore,

    For a fast custom solution my choice would be a web service approach
    with Axis or something. Though this may result in quiet a lot of lost
    functionality.

    If a more full featured approach is needed....well. I never worked with
    Apple's JavaClient, though always looked at it with envy :-). This
    seems like a real nice solution. Having something similar in Cayenne
    would be awesome. There are a few choices to make Cayenne distributed -
    at the level of either DataContext, DataDomain, or DataNode. My
    preference would be client-side DataContext with the rest of the
    Cayenne stuff residing on the server. This seems like the most
    lightweight and clean approach. Such DataContext will most likely
    communicate with server-side DataDomain via some server-side adapter
    class (that can probably be viewed as a peer DataContext or something).
    Transport can be Axis or RMI or whatever.

    Of course this will require some more thought. If you decide to do more
    investigation in this direction I will be glad to further help out with
    the design.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Aug 27 2003 - 11:24:57 EDT