RE: 3-tier architecture

From: Scott Anderson (sanderso..irvana.com)
Date: Mon Mar 10 2008 - 15:05:22 EDT

  • Next message: Walter Haas: "Wrong data type for source attribute of a relationship?"

    I'm not sure if this will help, but I've got Cayenne running in a CXF Web Service container, and I'm using a custom in-house JavaScript webkit to do AJAX calls.

    One interesting quirk of my project is that, because CXF can't bind to the same port as the web server, and because some web browsers security layers prevent making AJAX calls to even so much as the same server on a different port, I had to set up a server-side proxy to redirect the information to the correct place. This is easily done with mod_rewrite and the RewriteRule directive.

    -----Original Message-----
    From: Borut Bolina [mailto:borut.bolcin..mail.com]
    Sent: Monday, March 10, 2008 2:02 PM
    To: Cayenne
    Subject: 3-tier architecture

    Hello list,

    is anyone here using Cayenne in 3-tier architecture?

    Scenario: several instances of web app (JSP) with no database access connecting to middle tier with Cayenne for data access to one or more databases. Middle tier is a RMI server in Spring flavor. I am also thinking to provide load balancing and high availability with OpenSpaces for this RMI sever(s). Setting up a web server to use ROP is not an option.

    If anyone has an experience to share, I would be glad to discuss it.

    Thanks,
    Borut



    This archive was generated by hypermail 2.0.0 : Mon Mar 10 2008 - 15:05:57 EDT