[
http://jira.jboss.com/jira/browse/JGRP-295?page=all ]
Bela Ban resolved JGRP-295.
---------------------------
Resolution: Done
done, fixed according to suggested solution. Also updated the javadoc
DistributedHashtable and ChannelFactory with XML config file
------------------------------------------------------------
Key: JGRP-295
URL:
http://jira.jboss.com/jira/browse/JGRP-295
Project: JGroups
Issue Type: Bug
Affects Versions: 2.4
Reporter: Stefan Kassal
Assigned To: Bela Ban
Fix For: 2.4
I think I have found an issue with DistributedHashtables (jgroups 2.4CR2)
I have a XML file containing the protocol stack and create a ChannelFactory with that
file.
ChannelFactory factory=new JChannelFactory(new File(configFilePathM));
The DistributedHashtable is created with
DistributedHashtable distHashM = new
DistributedHashtable(distChannelNameM,factory,channelProps,true,TIMEOUT);
The problem is that the constructor of the DistributedHashtable class which I want to use
uses the following:
channel=factory != null ? factory.createChannel(properties) : new JChannel(properties);
That means it always tries to uses the properties to create the channel and you cannot
force it to use the configuration of the factory.
This could be solved in a way that you check if the properties is null and if it is you
call factory.createChannel()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira