[jboss-as7-dev] Local database file connection urls
Scott Stark
sstark at redhat.com
Mon Jun 6 14:42:36 EDT 2011
Ok thanks. I do see the expansion working. It is just for basic testing
across server restarts so nothing serious.
On 6/6/11 10:55 AM, Jesper Pedersen wrote:
> On Monday, June 06, 2011 01:44:46 PM Scott Stark wrote:
>> In the
>> http://community.jboss.org/wiki/DataSourceConfigurationInAS7#Defining_the_D
>> ataSource_itself section I don't see an example of setting up a local
>> database with a backing store. Looking at the
>> org.jboss.as.connector.subsystems.datasources code, I don't see any
>> reference to the usual relativeTo attribute, or an attempt to expand
>> jboss.* properties. It seems like something like the following needs to
>> be supported with the datasource element handling property expansion:
>>
>> <subsystem xmlns="urn:jboss:domain:datasources:1.0">
>> <datasources>
>> <datasource jndi-name="java:/H2DS" pool-name="H2DS" enabled="true"
>> use-java-context="true"
>> relativeTo="jboss.server.data.dir">
>> <connection-url>
>>
>> jdbc:h2:file:${jboss.server.data.dir}/test;DB_CLOSE_DELAY=-1
>> </connection-url>
>> ...
> Don't use H2 for anything serious. The ${} expansion will work even though it
> is undocumented.
>
> Best regards,
> Jesper
> _______________________________________________
> 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