Hi Pumudu, You can rename these to any meaningful name. This name is not being used anywhere to retrieve database configurations (jndiConfig is the value which has been used to retrieve configs).
Thanks, Akalanka. On Thu, Feb 12, 2015 at 2:43 PM, Pumudu Ruhunage <[email protected]> wrote: > Hi, > > I'm working on developing dsetup feature in MB. Since all the datasources > are similarly named, it's hard to uniquely identify data source which needs > to be sourced to rdbms store. > > For example, > i need to skip following embedded H2 store configuration. > <!-- WSO2 MB embedded H2 Store --> > <datasource> > <name>*WSO2_MB_STORE_DB*</name> > <description>The datasource used for registry and user > manager</description> > <jndiConfig> > <name>WSO2MBStoreDB</name> > </jndiConfig> > <definition type="RDBMS"> > <configuration> > > <url>jdbc:h2:repository/database/WSO2MB_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</url> > <driverClassName>org.h2.Driver</driverClassName> > <maxActive>50</maxActive> > <maxWait>60000</maxWait> > <testOnBorrow>true</testOnBorrow> > <validationQuery>SELECT 1</validationQuery> > <validationInterval>30000</validationInterval> > </configuration> > </definition> > </datasource> > > And following mssql configurations needs to extract from xml. > <datasource> > <name>*WSO2_MB_STORE_DB*</name> > <jndiConfig> > <name>WSO2MBStoreDB</name> > </jndiConfig> > <definition type="RDBMS"> > <configuration> > <url>jdbc:jtds:sqlserver://localhost:1433/wso2_mb</url> > <username>root</username> > <password>root</password> > > <driverClassName>net.sourceforge.jtds.jdbc.Driver</driverClassName> > <maxActive>200</maxActive> > <maxWait>60000</maxWait> > <minIdle>5</minIdle> > <testOnBorrow>true</testOnBorrow> > <validationQuery>SELECT 1</validationQuery> > <validationInterval>30000</validationInterval> > </configuration> > </definition> > </datasource> > > It would be great if we can keep two separate names for embedded db > configurations and external rdbms configurations. For example can we > rename WSO2 MB embedded H2 Store Name to something like > *WSO2_MB_EMBEDDED_STORE_DB > *? > > Pumudu Ruhunage > Associate Software Engineer | WSO2 Inc > M: +94 779 664493 | http://wso2.com > -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
