[jbossts-issues] [JBoss JIRA] Commented: (JBTM-405) PropertyManagerImpl.getPropertyFromSubTree(String name) looks for properties in _parentPropertyManagers and not in _childPropertyManagers

Jonathan Halliday (JIRA) jira-events at lists.jboss.org
Wed Jan 28 11:48:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBTM-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450066#action_12450066 ] 

Jonathan Halliday commented on JBTM-405:
----------------------------------------

The original behaviour is in fact correct. The parents are the sections on which a given section depends. Thus for

<properties depends="common" name="arjuna">

The parent is common, so a getProperties() call against the arjuna module PropertyManager would be expected to find items from arjuna or common, but NOT recoverymanager.

If you want recovery manager properties, call the recoverymanager property manager, not the arjuna one. Which is what TransactionStatusManager now does:

PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");

But the sooner we go back to a flat properties file the batter ( JBTM-438 )

> PropertyManagerImpl.getPropertyFromSubTree(String name) looks for properties in _parentPropertyManagers and not in _childPropertyManagers
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-405
>                 URL: https://jira.jboss.org/jira/browse/JBTM-405
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Common
>    Affects Versions: 4.3.0.GA
>         Environment: JBoss-4.2.3.GA
>            Reporter: Dmitri Voronov
>            Assignee: Jonathan Halliday
>             Fix For: 4.6
>
>
> PropertyManagerImpl.getPropertyFromSubTree(String name) looks for properties in _parentPropertyManagers and not in _childPropertyManagers
> So the call:
> String tsmPortStr = arjPropertyManager.propertyManager.getProperty("com.arjuna.ats.arjuna.recovery.transactionStatusManagerPort" ) ;
> from com.arjuna.ats.arjuna.recovery.TransactionStatusManager misses, whereby the property exists in a child property manager.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossts-issues mailing list