cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1901) Config-free ServerRuntime
Date Sat, 15 Feb 2014 10:29:20 GMT
Andrus Adamchik created CAY-1901:
------------------------------------

             Summary: 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)

Mime
View raw message