[jboss-user] [Datasource Configuration] - Re: How to configure JBoss to connect to 2 databases?
span7152
do-not-reply at jboss.com
Mon May 21 15:37:40 EDT 2012
span7152 [https://community.jboss.org/people/span7152] created the discussion
"Re: How to configure JBoss to connect to 2 databases?"
To view the discussion, visit: https://community.jboss.org/message/736894#736894
--------------------------------------------------------------
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
[https://community.jboss.org/message/736894#736894]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120521/4a404cc9/attachment-0001.html
More information about the jboss-user
mailing list