JBoss Community

Re: Create datasource using CLI

created by Daniel Bevenius in JBoss AS7 Development - View the full discussion

Hi,

Can somebody post a sample on how to create a data source using CLI?

The following example can be found on this page, if you scroll down you find this example in the section "Deploying a Datasource":

 

/subsystem=datasources/data-source=MigrateDS:add(jndi-name=java:jboss/datasources/MigrateDS, pool-name=MigrateDS, driver-name=h2, connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1)

 

Regards,

 

/Daniel

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community