On Wednesday, April 20, 2011 05:14:25 AM Jaikiran Pai wrote:
I see that we ship a datasource out of the box and is available at
java:/H2DS
12:59:31,816 INFO [org.jboss.as.connector.subsystems.datasources] (MSC
service thread 1-4) Bound JDBC Data-source [java:/H2DS]
Would it be better to make it available at java:/DefaultDS? I am sure
there are many quick start/example/demo applications out there which use
java:DefaultDS for such simple examples. It would make it easier to use
those examples in AS7, without having to change them, if we stick with
the older name. Thoughts?
A couple of thoughts.
1) If we ship with one enabled out of the box I will leave to Jason to decide
- why not save the boot time if we don't need it ?
2) We should try and limit (eliminate) subsystem/service dependency on an
active database.
3) Having the name as 'DefaultDS' would leave the impression that the AS is
using the database.
I think a better route is to have the demos/samples/... just use the
deployment api - through a script to the CLI f.ex. - to create the necessary
resources and deploy their application.
That would better showcase the new cool way of doing deployments.
Best regards,
Jesper