Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » JBoss  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 怎样在JBOSS中配置两个连接池?
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-11-04 16:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这样配运行时出错! 那位熟悉?

<?xml version="1.0" encoding="UTF-8"?>

<datasources>
<local-tx-datasource>
<jndi-name>data1</jndi-name>
<connection-url>jdbc:oracle:thin:@177.101.1.80:1521:cjsdn</connection-url>
  <!--

    Here are a couple of the possible OCI configurations.
    For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm

  <connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
    or
  <connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>

    Clearly, its better to have TNS set up properly.
   -->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>user</user-name>
<password>pass</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
</local-tx-datasource>

<local-tx-datasource>
<jndi-name>data2</jndi-name>
<connection-url>jdbc:oracle:thin:@177.101.1.79:1521:cjsdn</connection-url>
  <!--

    Here are a couple of the possible OCI configurations.
    For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm

  <connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
    or
  <connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>

    Clearly, its better to have TNS set up properly.
   -->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>user</user-name>
<password>pass</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
</local-tx-datasource>

</datasources>


jameszhang edited on 2004-11-04 16:11

"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:怎样在JBOSS中配置两个连接池? [Re:jameszhang]
256456





发贴: 91
积分: 50
于 2004-11-04 18:35 user profilesend a private message to usersend email to 256456search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
写在两个不同的配置文件中!!
如:hsqldb-ds.xml ,hsqldb-ds2.xml



作者 Re:怎样在JBOSS中配置两个连接池? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-11-04 19:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在一个文件里,应该没问题吧!


"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"


flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923