Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Database Connection in datasource

    Is there a way I can specify the connection settings in each and every datasources rather than in server.properties.We have 2 databases and some of the datasources should connect DB1 and rest to DB2.How do we achieve this?

    Regards
    Rajesh Patibandla

    #2
    User server.properties like you always did:
    Code:
    sql.WHATEVERNAMEYOUWANT.driver.serverName: yourdbserver.fqdn
    sql.WHATEVERNAMEYOUWANT.driver.databaseName: yourdbName
    and add a dbName attribute to your datasource definition

    Code:
    <DataSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      ID="YourDataSourceId"
      dbName="WHATEVERNAMEYOUWANT"
      ...
      >

    Comment

    Working...
    X