if (outcome != success) of /subsystem=datasources/data-source=java\:jboss\/myDS:read-resource
/subsystem=datasources/data-source="java:jboss/myDS":add(jndi-name="java:jboss/myDS",driver-name="h2",connection-url="jdbc:h2:tcp://localhost/h2db;DB_CLOSE_DELAY=-1",user-name="sa")
end-if
if (result == false) of /subsystem=datasources/data-source=java\:jboss\/myDS:read-attribute(name=enabled)
/subsystem=datasources/data-source="java:jboss/myDS":enable
end-if
