dev@genericjmsra.java.net

Re: Properties with "," in the value

From: Ramesh Parthasarathy <Ramesh.Parthasarathy_at_Sun.COM>
Date: Wed, 09 Jul 2008 11:37:29 +0000

Hi Angelo,
        Thanks for the contribution. Did you get a chance to look at the
ObjectBuilder implementation in Generic ra 2.0, it uses a
CustomTokenizer which could solve the problem you have described.
Also, if you have a write up that describes the steps involved in
integrating jonas and Open MQ, please send it us, we will post it in the
generic jms ra site.

Thanks
-Ramesh

Angelo R. Di Filippo wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_genericjmsra.dev.java.net
> For additional commands, e-mail: dev-help_at_genericjmsra.dev.java.net
>