Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B76A114D4 for ; Mon, 12 May 2014 21:37:46 +0000 (UTC) Received: (qmail 57096 invoked by uid 500); 12 May 2014 17:37:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57053 invoked by uid 500); 12 May 2014 17:37:46 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 83893 invoked by uid 99); 10 May 2014 23:10:06 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:message-id:date:to :mime-version; bh=/YNP9Hj+/O5m9JJ30t7SdAePKOL9a+cpDtJduLXQpVM=; b=mH/XfhWAVCXaxiTLxzFj1WDXcbB1qGKq7qdnzc05EkY6AbQ6fVbadlaSsxjSco2Cr7 9nKYSh/EE20lZEvePERU4snon7YFv2SgLPkD6YFtTrZG2LmBsFp7/9aXf9BCeGXwMqxv /YjiYtjqmVKT0MT8KcMXTQ+c1Tp0xxdsI5f+Ny1X8OtE/16TpF3EW+Siwc4NNMRomAww 4H4YqplpxaQvpQiXzfP2q9KQmiS464PjLHIEcWLKRk1PcLr6biFltsEfYzvDskLubLTv bQ15l567Lb4HvqNCbd1jto7ZjiwsRYdt4lk8yu5BL3rO4g1k9Fu0UPY/MHBklGFmSLij j93Q== X-Gm-Message-State: ALoCoQm7FCoW3mtlJ7cEiK6YMRMYhlvSGwbOYCnqq+kcJ+mSr/7n5e9UUgxwgHcp36UIj200hzt7 X-Received: by 10.14.175.200 with SMTP id z48mr14473257eel.66.1399447706075; Wed, 07 May 2014 00:28:26 -0700 (PDT) From: Wim Verreydt Content-Type: multipart/alternative; boundary="Apple-Mail=_8209759C-E82D-4496-82A9-D134AA2D6387" Subject: Web console config not updating in ServiceMix (Karaf) Message-Id: <52652EE2-571C-413C-86BC-5CC17B68332A@anova.be> Date: Wed, 7 May 2014 09:28:26 +0200 To: users@activemq.apache.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_8209759C-E82D-4496-82A9-D134AA2D6387 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi all, When I run ActiveMQ 5.9.0 and its web console in ServiceMix (Karaf) I = have a problem with the configuration in the = org.apache.activemq.webconsole.cfg file. In ServiceMix the default user = for jmx and jms connections to activemq is =93smx=94 (instead of =93karaf"= in Karaf). =20 The servicemix version I use is 5.0.0 The contents of my org.apache.activemq.webconsole.cfg file are: webconsole.jms.url=3D${activemq.url} = webconsole.jmx.url=3Dservice:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${= karaf.name} webconsole.jmx.user=3Dsmx webconsole.jmx.password=3Dsmx webconsole.jms.user=3Dsmx webconsole.jms.password=3Dsmx When i install the web console for the first time, everything works = great. org.apache.activemq.web.config.OsgiConfiguration gets created, it = gets updated with the new configuration and finally the web console = (webconsole-osgi.xml) executes a getConnectionFactory on the = configuration and everything gets picked up fine. But after a restart the order of events is change. The creation of = OsgiConfiguration and the getConnectionFactory call are both defined in = the web console (webconsole-osgi.xml) and are executed right after each = other, before the hard coded default config (user:karaf =85 ) gets = updated with the new (user: smx =85 ) configuration. As the values of = OsgiConfiguration are not passed by reference, the ConnectionFactory = will keep using the old configuration. Eventually requesting queue info = and sending messages trough the web console will fail because of = authentication issues. I bump into the same issue if I try to update the configuration while = running. At the moment i think this issue blocks the following ServiceMix issue: = https://issues.apache.org/jira/browse/SM-2267 Is there any solution you can propose or does this has to be changed in = the code?=20 Sincerely, Wim --Apple-Mail=_8209759C-E82D-4496-82A9-D134AA2D6387--