Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D620410335 for ; Sat, 15 Feb 2014 10:29:21 +0000 (UTC) Received: (qmail 68493 invoked by uid 500); 15 Feb 2014 10:29:21 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 68473 invoked by uid 500); 15 Feb 2014 10:29:21 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 68457 invoked by uid 99); 15 Feb 2014 10:29:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 10:29:20 +0000 Date: Sat, 15 Feb 2014 10:29:20 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAY-1901) Config-free ServerRuntime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)