users@jmsjca.java.net

RE: how to specify multiple ConnectionURLs?

From: <coccic75386_at_mypacks.net>
Date: Mon, 7 Apr 2008 18:04:06 -0400 (EDT)

Hi Frank -

Thanks for the feedback. I have to admit I'm having some difficulty.

>The easiest way to accomplish this is to use the raunifiedjms connector.

Great, I was able to build the code snapshot from CVS and generated a raunifiedjms.rar file. I was also able to successfully deploy this to Glassfish.

>For the URL you would specify jndi:// and you would set an additional field
Options that has all the JNDI properties.

OK, I did this as well. But I'm getting the following exception from Glassfish:

javax.jms.JMSException: The JNDI name is null at com.stc.jmsjca.jndi.RAJNDIObjectFactory.getJndiObject(RAJNDIObjectFactory.java:100)
at com.stc.jmsjca.jndi.RAJNDIObjectFactory.createConnectionFactory(RAJNDIObjectFactory.java:186)

It seems that when I set java.naming.provider.url to jnp://localhost:1099 in the Options field, the value is not used for the JNDI lookup.

I'm actually trying to get the new resource adapter to work with only a single URL for now. I also tried setting the ConnectionURL to jnp://localhost:1099 like I did for JMSJCA but that didn't work either.

Also, I'm not sure it makese sense to me to set the ConnectionURL to jndi://, which of course is blank.

Any ideas?

Thanks!

Ted