Re: using cayenne data connection pools with struts.

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Nov 06 2003 - 21:15:18 EST

  • Next message: Mike Kienenberger: "Re: using cayenne data connection pools with struts."

    On Nov 6, 2003, at 9:07 PM, Andrus Adamchik wrote:

    > If this is not the case, you can obtain DataSource from Cayenne
    > DataNode.

    Going through the mailing list archive, I can see that you are using
    Cayenne for real in your apps... In this case everything should be even
    simpler. Forget configuring DataSource in struts XML files. Whenever
    you *really-really* need to bypass Cayenne and get connections directly
    do something like this:

    DataNode node =
    (DataNode)Configuration.getDomain().getDataNodes().get(0);
    DataSource ds = node.getDataSource();

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Nov 06 2003 - 21:15:23 EST