[jboss-jira] [JBoss JIRA] (JGRP-1596) Allow to configure a channel with properties as well as url

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue Feb 19 02:34:56 EST 2013


    [ https://issues.jboss.org/browse/JGRP-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754891#comment-12754891 ] 

Bela Ban commented on JGRP-1596:
--------------------------------

Can you elaborate ? The properties map contains property names and associated values ?
It would be best to show an example of how such a constructor would be used.
                
> Allow to configure a channel with properties as well as url
> -----------------------------------------------------------
>
>                 Key: JGRP-1596
>                 URL: https://issues.jboss.org/browse/JGRP-1596
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Ittay Dror
>            Assignee: Bela Ban
>
> Currently, if I want to start 2 channels with the same configuration file, I'll get a lot of "discarded message from different cluster". I can use system properties to tweak the port setting in the file, but this is not thread safe. 
> I suggest adding a constructor `public JChannel(URL properties, Properties vars) throws Exception` that will use the 'vars' properties to interpolate the variables found in the properties file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list