5 Replies Latest reply on Nov 24, 2015 9:30 AM by jesper.pedersen

    Couchbase data source configuration in WildFly


      WildFly has <datasource> element that configures a JDBC resource as:



                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">









                          <driver name="h2" module="com.h2database.h2">





      What would be an appropriate place in the configuration file to add a similar element to configure a Couchbase connection?

      It could be something like:


                      <datasource jndi-name="java:couchbase/ExampleDS" enabled="true">








      Does not have to be in <datasources>, would be nice if it can be resolved using JNDI but not necessarily a requirement. Any thing simplistic would do.

      How would this then be accessible in application?

      It may not have connection pooling or any of the advantages but will make application configuration familiar to developers using WildFly. It'll be great if this configuration can be added using jboss-cli.