Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 387A911986 for ; Fri, 22 Aug 2014 06:37:12 +0000 (UTC) Received: (qmail 59937 invoked by uid 500); 22 Aug 2014 06:37:11 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 59910 invoked by uid 500); 22 Aug 2014 06:37:11 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 59899 invoked by uid 99); 22 Aug 2014 06:37:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2014 06:37:11 +0000 Date: Fri, 22 Aug 2014 06:37:10 +0000 (UTC) From: "Vinuraj M (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3174) Data source xml change not taking effect in first karaf start post modification MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14106545#comment-14106545 ] Vinuraj M commented on KARAF-3174: ---------------------------------- Above mentioned scenario works fine when using a data source configuration as following, which is using properties file placed in KARAF_HOME/etc directory. file:etc/db1.properties Properties file in KARAF_HOME/etc as follows ##Database properties url=localhost:5432/db1 user=userid password=password > Data source xml change not taking effect in first karaf start post modification > ------------------------------------------------------------------------------- > > Key: KARAF-3174 > URL: https://issues.apache.org/jira/browse/KARAF-3174 > Project: Karaf > Issue Type: Bug > Components: karaf-config > Affects Versions: 3.0.1 > Environment: RHEL 5.5 x86_64 > Reporter: Vinuraj M > Priority: Minor > Labels: datasource, deploy, propertyplaceholder, > > Modification of datasource XML placed in KARAF_HOME/deploy folder done while the Karaf instance is down is not detected on the first start of Karaf instance post modification. Karaf instance is taking the old database properties rather than the updated one. This is when the database properties are hard coded into the XML file. Behaviour defers when the database properties are configured using property place holders which is sourced from a properties file placed in KARAF_HOME/etc. While using properties place holders, Karaf is able to pick up the updated configuration. -- This message was sent by Atlassian JIRA (v6.2#6252)