tomcat中主配置檔案連線資料庫

kidking2010發表於2011-04-25
1》
tomcat中,主目錄所在位置在/opt/apache-tomcat-6.0.32/webapps/ROOT/下面
找到/opt/apache-tomcat-6.0.32/webapps/ROOT/WEB-INF/classes
這個目錄。
下面有連線資料庫驅動的配置檔案jdbc.properties這個例子是連線RAC的庫用於例項級別的負載均衡
system.id=CDS001
#\u7487\u30e6\u6783\u6d60\u5815\u6e36\u7455\u4f79\u6581\u7f03\ue1bc\u57ccclasspath\u6d93\ue168\u7d1dspring\u704f\u55d5\u7ca0\u8930\u64b3\u58a0\u5bb8\u30e4\u7d94\u9429\ue1bc\u7d8d\u935c\u5b91lasspath\u6d93\ue15e\ue1f0\u93b5\u6350\ue1da\u93c2\u56e6\u6b22
hibernate.show_sql=true
hibernate.dialect=org.hibernate.dialect.Oracle9iDialect
jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.31.31)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.31.32)(PORT=1521))(LOAD_BALANCE=yes)(FAILOVER=ON) (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETIRES=20)(DELAY=15))))
jdbc.user=citycms
jdbc.password=temobicitycms
 
2》
tomcat中,主目錄所在位置在/opt/apache-tomcat-6.0.32/webapps/ROOT/下面
找到/opt/apache-tomcat-6.0.32/webapps/ROOT/WEB-INF/classes
這個目錄。
下面的配置檔案是cms.properties的例子
# system information
system.id=CMS_GD_440000_01
system.name=CMS
system.description=The CMS system
system.version=2.0.0
jms.url=tcp://192.168.31.10:61616
#jms.url=tcp://120.197.93.67;61616
jms.user=temobioss

#jms.producer=portal.event.msgReplyTopic
#jms.consumer=portal.event.msgTopic
jms.producer=content.event.msgReplyTopic
jms.consumer=content.event.msgTopic
jms.producer.portal.content=portal.event.msgReplyTopic
jms.consumer.portal.content=portal.event.msgTopic
subscribe.directory.url=
#subscribe.directory.url=
weather.get.url=
weather.get.cycle=30 40 9 * * ?
#weather city
weather.get.city=Shenzhen,Dongguan,Zhongshan,Zhuhai,Shanghai
content.playurl.iptable=211.139.168.240=211.139.192.154,192.168.3.241=211.139.168.240
cms.gocsweb.url=
cms.gocsweb.search.action=/cs/contentselect.do?method=initSearch
cms.gocsweb.postADI.action=/cs/contentselect.do?method=initPostADI
#map server
map.get.latlon.url =

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23141985/viewspace-693642/,如需轉載,請註明出處,否則將追究法律責任。

相關文章