dev@genericjmsra.java.net

Properties with "," in the value

From: Angelo R. Di Filippo <angelo.difilippo_at_ubiquity.it>
Date: Wed, 09 Jul 2008 10:44:34 +0200

Hi,
I'm using genericjmsra.rar (1.7.0) with jonas application server and,
excluded some modifications to the code to work, the JCA seems to work.
I found a problem with the ConnectionFactoryProperties tag/property; I
decided to use open mq in clustering but the config

imqAddressList=192.168.0.157,192.168.0.34,imqAddressListBehavior=RANDOM

for ConnectionFactoryProperties doesn't work since the "," is the server
separator and the property delimitator. I think it should be better to
change the method parseToProperties of
com.sun.genericra.util.ObjectBuilder in

    protected Hashtable parseToProperties(String prop)
        throws ResourceException {
        _logger.log(Level.FINE,
            "parseToProperties:" + prop + " delimited:" + delimiter +
            " seperator:" + separator);

        Properties result = new Properties();
       
        try {
            result.load(new
ByteArrayInputStream(prop.getBytes("ISO-8859-1")));
        } catch (Exception e) {
        }
        return result;
    }

so the properties are in a java real properties format.
I appreciate comments.

Ciao Angelo