[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 04:38:57 EST 2013
[ https://issues.jboss.org/browse/JGRP-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754924#comment-12754924 ]
Bela Ban commented on JGRP-1596:
--------------------------------
I don't see what value this brings to the table, but the 'overrides' properties map would have to be added as additional parameter to all constructors, which adds a lot of code.
You could easily write a factory method in your application code which creates a JChannel and applies the properties.
> 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