JBoss Community

Re: How to configure JBoss to connect to 2 databases?

created by span7152 in Datasource Configuration - View the full discussion

Mr. Wold-Dieter,

 

   Can we write oracleds-persistence-service.xml as follows? (Not sure???)

 



   <!-- Persistence Manager MBean configuration

       ======================================== -->

   <mbean code="org.jboss.messaging.core.jmx.JDBCPersistenceManagerService"

      name="jboss.messaging:service=PersistenceManager"

      xmbean-dd="xmdesc/JDBCPersistenceManager-xmbean.xml">

      <depends>jboss.jca:service=DataSourceBinding,name=jdbc/OracleDS1</depends>

      <depends>jboss.jca:service=DataSourceBinding,name=jdbc/OracleDS2</depends>

      <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>

      <!-- The datasource to use for the persistence manager -->

      <attribute name="DataSource">java:jdbc/OracleDS1</attribute>

      <attribute name="DataSource">java:jdbc/OracleDS2</attribute>

      ...........

  </mbean>



 

Thanks,

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community