Bug 886126 - Datasource JNDI change takes too long to be propagated to JON server
Summary: Datasource JNDI change takes too long to be propagated to JON server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 5
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER01
: JON 3.2.0
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-11 15:12 UTC by Jakub Cechacek
Modified: 2015-02-01 22:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jakub Cechacek 2012-12-11 15:12:20 UTC
This issue is probably related to https://bugzilla.redhat.com/show_bug.cgi?id=886119


If you change JNDI name of some Datasource from lets say "foo" to "bar" two things happen 

1) Because datasource type resources are being referenced by JNDI instead of Resource Name (key?) the old "foo" resource will become dead but still visible in inventory of EAP server resource. 

2) After some time (probably when discovery -f is performed on agent side) new child resource of name "bar" appears in inventory

Comment 1 Radim Hatlapatka 2012-12-17 13:57:38 UTC
Till JON runs check for changes the resource with old name (JNDI name) is visible in JON, which makes it confusing for customer. The workaround is to run discovery manually (on the agent run discovery -f, or the agent's manual discovery operation).

The datasource resource should be rather associated with its resource name, if it is specified during its creation, it would prevent this kind of errors as having two datasources at the same time when one is invalid and second is valid.

Comment 3 Thomas Segismont 2013-07-25 16:08:42 UTC
Fixed in master

commit 4ab947d9c450a94601055509cb9c4240b0652210
Author: Thomas Segismont <tsegismo>
Date:   Thu Jul 25 18:06:07 2013 +0200

In EAP5, JNDI name is the key of Datasource and Connection Factory managed components. Consequently, there is no way to change the JNDI name of such components without creating a new managed component, which will in the end be discovered by RHQ.

So in RHQ, jndi-name config property is now marked as read-only (it will still be required when creating a Datasource or a Connection Factory).

Comment 4 Larry O'Leary 2013-09-06 14:30:31 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.

Comment 5 Libor Fuka 2013-09-25 12:11:57 UTC
VERIFIED with JON 3.2.0.ER1 and EAP 5.2.0.GA
You can't change JNDI name of DataSource, JNDI Name is read-only attribute


Note You need to log in before you can comment on or make changes to this bug.