You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2014/02/15 11:35:19 UTC

[jira] [Closed] (CAY-1901) Config-free ServerRuntime

     [ https://issues.apache.org/jira/browse/CAY-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1901.
--------------------------------

    Resolution: Fixed

> Config-free ServerRuntime
> -------------------------
>
>                 Key: CAY-1901
>                 URL: https://issues.apache.org/jira/browse/CAY-1901
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.2.M2
>
>
> Often it is useful to have a Cayenne stack to do raw SQL operations via SQLTemplate and friends. There may be no ORM mapping present, and often an externally managed DataSource is provided. Currently ServerRuntime won't start without an XML descriptor.
> So implement methods in ServerRuntimeBuilder that allow to assemble basic parts of such stack, as well as tweak ServerRuntime itself to allow starting with no XML configs. Here is a usage example:
> ServerRuntime localRuntime = new ServerRuntimeBuilder()
>      .jdbcDriver("com.foo.Driver")
>      .url("jdbc:foo://")
>      .password("XXXX")
>      .user("user")
>      .minConnections(1)
>      .maxConnections(2)
>      .build();



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)