不明白,只知道能绑定EJB,和数据库。
引用的话。
Context ic = new InitialContext();
Object o = ic.lookup("绑定的名字");
然后,转换成相应的类型。
引用的话。
Context ic = new InitialContext();
Object o = ic.lookup("绑定的名字");
然后,转换成相应的类型。
解决方案 »
- Html 中 disabled 属性的问题?
- 通过jsp页面将js中的数组导入到userbean中的数组怎样做到?
- 有谁做过电信的业务?
- 不看不行啊
- 请教使用JSP访问Oracle8/8i/9i数据库中的问题(初学)
- "renshitongjiAction.jsp": incompatible types; found : java.lang.String, required: java.lang.String[]
- SQLException异常怎么解决?
- 请问有去过深圳富士康面试的吗?
- 要jxl的例子代码和全部说明资料?
- 怎样把Tomcat里面的JSP网页发布到Websphere里面去?
- JPEGImageEncoder
- 在线求救,关于smartupload
2:SAXBuilder sxb = new SAXBuilder();
FileInputStream fi = new FileInputStream(path); //path也就是1中得到的path
Document doc = sxb.build(fi);
Enumeration propNames = props.propertyNames();
while (propNames.hasMoreElements()) {
String name = (String) propNames.nextElement();
if (name.endsWith(".url")) {
String poolName = name.substring(0, name.lastIndexOf("."));
String url = props.getProperty(poolName + ".url");
if (url == null) {
log("没有为连接池" + poolName + "指定URL");
continue;
}
String user = props.getProperty(poolName + ".user");
String password = props.getProperty(poolName + ".password");
String maxconn = props.getProperty(poolName + ".maxconn", "0");
int max;
InputStream requestMappingsURL = getServletContext().getResourceAsStream(config);再把这个流当成你的xml builder的输入流。