to sharetop(天生不笨):谢谢你的指导,不过我想知道,你自己有没有做过EJB+ORACLE的开发,我看教程看了很久,都没有详细的解答,麻烦你给出一个实例,谢谢!
to sharetop(天生不笨):谢谢你的指导,不过我看书看了很久了,也动手做过测试,一直未能弄好,不知道你自己做过EJB+ORACLE的事没有?请你给出一个实例,谢谢!
一般的ejb连数据库都是容器的活,好像不干ejb什么事
1.用resource.properties文件的一种连接, its very easy to u. ResourceBundle resourceBundle = ResourceBundle.getBundle("resource"); //bundle ur resource.properties Class.forName(resourceBundle.getString("Driver")); // get the "Driver" from resource.properties2.你可以把Driver的名称指定在resource.properties 注意:你最好在Application中试验成功,在jsp中调用是可能问题。
ResourceBundle resourceBundle =
ResourceBundle.getBundle("resource"); //bundle ur resource.properties Class.forName(resourceBundle.getString("Driver")); // get the "Driver" from resource.properties2.你可以把Driver的名称指定在resource.properties
注意:你最好在Application中试验成功,在jsp中调用是可能问题。