还是关于weblogic的简单问题,很急

jdevelop 2002-09-29 02:42:29
我现在有一个Opta2000.jar是sql的一个驱动,不是weblogic自带的
如果我要用它去连数据库,我应该做哪些工作呢
那个的使用说明如下:
3.5 Driver Class Name
----------------------
The class name of the driver is
com.inet.tds.TdsDriver

The name of the pooled driver is
com.inet.pool.PoolDriver
3.7 JDBC URL Syntax of the driver
---------------------------------
jdbc:inetdae7:hostname:portnumber
jdbc:inetdae7:hostname -> with default port 1433
jdbc:inetdae7:hostname:portnumber?database=MyDb&language=us_english
-> with properties
jdbc:inetdae7://servername/pipe/pipename -> with named pipes
jdbc:inetdae7://servername/pipe/MSSQL$instancename/sql/query --> named instance of MS SQL Server 2000


3.8 JDBC URL Syntax of the pooled driver
-----------------------------------------
If you would like to use the pooled driver then you can use one of the following JDBC url's.
There is no difference in the functionality of these both url's.

jdbc:inetpool:<subprotocol with parameter>
jdbc:inetpool:jdbc:<subprotocol with parameter>

Examples
jdbc:inetpool:inetdae7:www.inetsoftware.de:1433
jdbc:inetpool:inetdae7:localHost:1433
jdbc:inetpool:inetdae7://MyServer/pipe/sql/query

jdbc:inetpool:jdbc:inetdae7:www.inetsoftware.de:1433
jdbc:inetpool:jdbc:inetdae7:localHost:1433
jdbc:inetpool:jdbc:inetdae7://MyServer/pipe/sql/query


...全文
43 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
rj79 2002-09-29
  • 打赏
  • 举报
回复
如果你用的是weblogic6.1,那么先将该jar文件考入wlserver6.1\lib\jdbc下,如果没有jdbc目录,就在下面建一个。同时修改wlserver6.1\config\mydomain修改startWeblogic.cmd

set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
改成
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\jdbc\Opta2000.jar;
重新启动服务器。
至此weblogic配置完成。
还有你提供的只是url格式,该格式example只应用开始用Java编程时DriverManager.getConnection(URL url,...)的url格式。
All have been tested.If you have any other question,Please send to rj79@sina.com
jdevelop 2002-09-29
  • 打赏
  • 举报
回复
什么menu tools啊,我怎么没有,在哪里?console里?
yu_dx 2002-09-29
  • 打赏
  • 举报
回复
choose:
1.[menu]tools-->configure librarys
2.create a new library
3.add your jar files into the library
4.add the library into your "project properties"

有关URL,要参考JDBC的说明,自己查吧
jdevelop 2002-09-29
  • 打赏
  • 举报
回复
我用的是weblogic6.1,请讲清楚一点好吗?
还有url等怎么设定
bhr 2002-09-29
  • 打赏
  • 举报
回复
加到weblogic的classpath里去,就是在启动脚本中的setclasspath中加进去!

1,236

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧