[jboss-jira] [JBoss JIRA] Created: (JGRP-295) DistributedHashtable and ChannelFactory with XML config file

Stefan Kassal (JIRA) jira-events at jboss.com
Fri Sep 1 06:27:21 EDT 2006


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


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

        



More information about the jboss-jira mailing list