[jboss-as7-dev] datasource/connection-url reference to interfaces/ports

Jaikiran Pai jpai at redhat.com
Tue Jul 19 09:32:21 EDT 2011


I might be wrong, but isn't the socket-binding elements within the 
standalone/domain xml meant to be only for the sockets opened within the 
JBoss AS process and not for sockets opened by external processes (like 
databases)?

-Jaikiran

On Tuesday 19 July 2011 02:01 AM, Scott Stark wrote:
> The datasource/connection-url property in the domain model is outside of
> the interfaces and socket-binding-group usage. The current
> datasource_1_0.xsd does not have a reference to sockets or interfaces.
> We also don't seem to be setting jboss.server.* system properties that
> could be used to create a configuration fragment like:
>
>
> <datasource jndi-name="java:jboss/datasources/MysqlDS" enabled="true"
> use-java-context="true" pool-name="H2DS">
> <connection-url>jdbc:mysql://${jboss.server.default.interface}:${jboss.server.socket-binding-group.mysql}/database</connection-url>
> <driver>mysql</driver>
> <security>
> <user-name>sa</user-name>
> <password>sa</password>
> </security>
> </datasource>
>
> What is the plan to allow jca connection factories to integrate into the
> interfaces/ports part of the domain model?
>
> This came up as we add support for mysql in the openshift express
> cartridge, and modification of the connection-url for the host the
> server is running on requires changes in two parts of the standalone.xml
> configuration rather than one.
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list