Return-Path: Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: (qmail 49024 invoked from network); 3 Sep 2009 16:31:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 16:31:03 -0000 Received: (qmail 23996 invoked by uid 500); 3 Sep 2009 16:31:02 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 23946 invoked by uid 500); 3 Sep 2009 16:31:02 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 23936 invoked by uid 99); 3 Sep 2009 16:31:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 16:31:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [204.127.203.211] (HELO sccmmhc91.asp.att.net) (204.127.203.211) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 16:30:51 +0000 DKIM-Signature: v=1; q=dns/txt; d=mchsi.com; s=dkim01; i=jpalmer1026@mchsi.com; a=rsa-sha256; c=relaxed/relaxed; t=1251995430; h=Content-Type:MIME-Version:Message-Id:Date:Subject: To:From; bh=CqD6hWGnIuv5e4BmS9WuOt/hoBpEus95F6ahPw3J0D4=; b=iGX rJgCvwDHZGSoIdfW4TSEfY2WDuVHI/qN4T/8soi5K8RKswvEsulMqTAZiELjb7dlVJg RBVfoV2MtTBtyrPQ== Received: from sccqwbc18 (scommcenter18.asp.att.net[204.127.203.180]) by mchsi.com (sccmmhc91) with SMTP id <20090903163030m9100i7a6se>; Thu, 3 Sep 2009 16:30:30 +0000 Received: from [207.63.100.163] by sccqwbc18; Thu, 03 Sep 2009 16:30:29 +0000 From: jpalmer1026@mchsi.com To: users@wicket.apache.org Subject: Setting Datasource at Runtime Date: Thu, 03 Sep 2009 16:30:29 +0000 Message-Id: <090320091630.15742.4A9FEF24000DFDC200003D7E223045151403010CD2079C080C03BFC0CDCFCE9D0A03040E9F06@mchsi.com> X-Mailer: AT&T Message Center Version 1 (Mar 2 2009) X-Authenticated-Sender: anBhbG1lcjEwMjZAbWNoc2kuY29t MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="NextPart_Webmail_9m3u9jl4l_15742_1251995429_0" X-Virus-Checked: Checked by ClamAV on apache.org --NextPart_Webmail_9m3u9jl4l_15742_1251995429_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit I'm using Wicket to develop an app and have stumbled upon a roadblock.I'd like the user to be able to select their desired datasource atruntime, as opposed to hardcoding the datasource in the persistence.xmlfile (we're using Spring and JPA). I feel like this should bereasonably simple to do, but I haven't been able to come up with asolution. Does anyone know of a way to do this? --NextPart_Webmail_9m3u9jl4l_15742_1251995429_0 Content-Type: multipart/related; boundary="NextPart_Webmail_9m3u9jl4l_15742_1251995429_1" --NextPart_Webmail_9m3u9jl4l_15742_1251995429_1 Content-Type: text/html Content-Transfer-Encoding: 8bit I'm using Wicket to develop an app and have stumbled upon a roadblock. I'd like the user to be able to select their desired datasource at runtime, as opposed to hardcoding the datasource in the persistence.xml file (we're using Spring and JPA). I feel like this should be reasonably simple to do, but I haven't been able to come up with a solution. Does anyone know of a way to do this? --NextPart_Webmail_9m3u9jl4l_15742_1251995429_1-- --NextPart_Webmail_9m3u9jl4l_15742_1251995429_0--