Topic: weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) |
Print this page |
1.weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-28 18:01 我要配置一个国内不常见的数据库DBMaker,知道它的JDBC驱动,但不知道配置WEBLOGIC的时候那个URL是什么,资料上也查不到,请各位大虾指点,weblogic连接池配置中的URL是如何确定的?我要如何才能配好。 |
2.Re:weblogic 问题,超级高手请进 [Re: freetkh] | Copy to clipboard |
Posted by: itemp Posted on: 2003-08-28 20:41 你有没有用该JDBC驱动的例子? 如果有的话照抄就ok了。 |
3.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: why Posted on: 2003-08-29 05:48 can't find JDBC info on DBMaker's homesite http://www.casemaker.com/ which JDBC driver are you referring to? how about the ODBC-JDBC bridge? |
4.Re:weblogic 问题,超级高手请进 [Re: itemp] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 08:30 我用了下面的程序是能操作数据库,但不知道怎么配置weblogic. package tkh.jdbc.dbmaker; //import javax.swing.*; import java.sql.*; import java.io.*; import java.util.*; import dbmaker.sql.*; public class DataAccess// extends JApplet { private String dbName=""; private String userId=""; private String userPwd=""; private Connection cnn=null; private String driver="dbmaker.sql.JdbcOdbcDriver"; public static void main(String[] args) { DataAccess app=new DataAccess("DBSAMPLE4","SYSADM",""); } public DataAccess(String db,String id,String pwd) { dbName=db; userId=id; userPwd=pwd; if(beginConnect()==0) return; readData("allType"); } private int beginConnect() { try { prt("注册驱动:\n"); Class.forName(driver).newInstance(); } catch(Exception e) { prt("数据驱动注册出错:\n"); prt("Message:"+e.getMessage()); e.printStackTrace(); return 0; } try { //DriverManager.registerDriver(new dbmaker.sql.JdbcOdbcDriver()); prt("连接数据库:\n"); cnn=DriverManager.getConnection("jdbc:dbmaker:"+dbName,userId,userPwd); return 1; } catch(SQLException e) { prt("连接dbmaker数据库出错:\n"); //while(e!=null) //{ prt("Message:"+e.getMessage()); //e=e.getNextException(); e.printStackTrace(); prt(" "); //} cnn=null; return 0; } } public void readData(String tableName) { try { Statement stmt=cnn.createStatement(); ResultSet rs=stmt.executeQuery("select * from "+tableName); ResultSetMetaData rsmd=rs.getMetaData(); int cols=rsmd.getColumnCount(); int i=0; prt("共有:"+cols+"列。"); for(i=0;i<cols;i++) { prt("列:"+i);//Stringrsmd.getColumnName()+"\t"); } prt(" "); } catch(Exception e) { prt("数据读取错误:\n"); prt(e.getMessage()); e.printStackTrace(); } } private void prt(String s) { System.out.println; } } |
5.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 08:41 我这儿有最新版的DBMaker数据库,功能非常强大,几可和Oracle比美! 尤其是多媒体处理方面,它是台湾凌群集团开发的,听说化了10多年,我听朋友说不错所以拿来用,ok! 功能强大,比SQL Server操作还方便, 安装时不到一分钟,faint ! 不知道台湾人咋搞的!但我想配weblogic却不知道怎样配!高手们执教啊! |
6.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-29 09:22 首先 编辑 WEBLOGIC的 C:\bea\weblogic700\server\bin\startWLS.cmd 把JDBC。JAR加到set CLASSPATH=后。 然后 启动,进入CONSOLE配置与配置其他的步骤相同。 |
7.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: jameszhang] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 09:31 是啊!我已经加了,使用的式weblogic 8.1 Driver name:dbmaker.sql.JdbcOdbcDriver url:jdbc:dbmaker:SAMPLES4:2453 (samples4是数据库名,2453是端口,这个url是我估计的,不自到对不对?) 最后出现错误 fail to establish a connection (8007, [DBMaker] cannot find the specified database section in the configuration file [odbccon. 689],0,0,0) |
8.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: itemp Posted on: 2003-08-29 09:34 根据你的java程序: URL:jdbc:dbmaker:db的名字(就是你的参数String db的值) DRIVER:dbmaker.sql.JdbcOdbcDriver |
9.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-29 09:36 你上面的程序能访问DBMAKER,程序里怎么没看到端口2453 |
10.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: itemp] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 09:37 对啊!我的db名就是samples4,服务端口是2543(不写端口还是会出现同样的错误!)增么办啊? |
11.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: jameszhang] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 09:42 谢谢老兄!我照你说的做现在好了!太感谢你了,能给我你的QQ或是MSN吗,我的QQ:176228470,MSN是freetkh@hotmail.com, 以后好向你请教。 |
12.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-29 09:46 来CJSDN灌水吧!呵呵, |
13.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: hwx Posted on: 2003-08-29 14:21 恕我寡闻,有这么强大的数据库产品吗?怎么几乎没听过。 有什么优点,能否介绍一下,谢谢。 |
14.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: hwx] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 14:25 我也刚用,很多地方我也不太清楚,不过我觉得它的多媒体处理功能很强大,而且其它数据库有的功能它基本上也有,操桌很简单。 |
15.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: ditty Posted on: 2003-08-29 14:33 当前版本是 4.05,感兴趣的朋友可以下来看看! ftp://www.dbmaker.com/pub/DBMaker/4.05/dbmaker-4.0sp5-win32.exe |
16.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: ditty Posted on: 2003-08-29 14:40 搂主提供一个JDBC驱动好吗? |
17.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: ditty] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-29 14:45 我有4.1的驱动不过我不知到上传到哪儿如有要的朋有给我邮箱我发给他. |
18.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: freetkh] | Copy to clipboard |
Posted by: ditty Posted on: 2003-08-29 14:52 一个driver不会很大吧?打包放在附件里就行了吧! |
19.Re:weblogic 问题,超级高手请进 (In fact, it's a DBMaker Q) [Re: ditty] | Copy to clipboard |
Posted by: freetkh Posted on: 2003-08-30 09:39 这个是DBMaker4.1的jdbc驱动,据我所知是最新的。 dmjdbc.jar (103.93k) |
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 |