[jboss-user] [Datasource Configuration] - url-delimiter in xa-datasource ignored?

Martin Kretschmer do-not-reply at jboss.com
Fri Mar 16 08:12:07 EDT 2012


Martin Kretschmer [https://community.jboss.org/people/mrzottel] created the discussion

"url-delimiter in xa-datasource ignored?"

To view the discussion, visit: https://community.jboss.org/message/724298#724298

--------------------------------------------------------------
Hi,

I'm trying to create a xa-datasource with failover using url-delimiter set to |, but it seems that JBoss 7.1.1 final is ignoring this setting.

Datasource (at least the parts I think are important):  

 <xa-datasource jndi-name="xxx" pool-name="xxx" use-ccm="false">
      <xa-datasource-property name="URL">jdbc:mysql://xxx|jdbc:mysql://yyy</xa-datasource-property>
      <driver>com.mysql</driver>
      <url-delimiter>|</url-delimiter>
</xa-datasource>

When starting JBoss with this configuration, I get an exception with "Database xxx|jdbc:mysql...." not found, so JBoss is not splitting
the URL by the delimiter as expected but handing over the complete URL. 

A similar issue was filed as a bug here:  https://issues.jboss.org/browse/AS7-3433 https://issues.jboss.org/browse/AS7-3433 but seems to have been fixed for normal, non-xa datasources,
even though from going through the sources it seems that XAManagedConnectionFactory has some logic in it to process url-delimiters. I guess
it's misconfiguration / misunderstanding on my part then - but where?

Best regards,
Martin
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/724298#724298]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120316/786fa5c0/attachment-0001.html 


More information about the jboss-user mailing list