java
摘要:
由于某客户有安全性要求,可以接收HTTP请求的服务器,不能连接DB服务器,这样我们基于非分布式构架系统在部署上碰到了困难,好在客户使用weblogic,通过别人的支持,知道一种办法可以通过weblogic.servlet.proxy.HttpClusterServlet来实现我们的要求,这个东东本来是作Cluster用的,放到我们的应用中,作HTTP-server代理也不错!
<servlet>
<servlet-name>HttpClusterServlet</servlet-name>
<servlet-class>
weblogic.servlet.proxy.HttpClusterServlet
&nb (全文共1016字)——点击此处阅读全文
摘要:
推荐 org.apache.commons.collections.map.LRUMap (全文共864字)——点击
此处阅读全文
摘要:我同事的作品seraph115@gmail.com (全文共11501字)——点击
此处阅读全文
摘要:
import org.apache.axis.client.Call;此处阅读全文
摘要:,只要改写他的 bsn/Primitive.java 的 static Object doubleBinaryOperation(Double D1, Double D2, int kind) 代码即可! (全文共297字)——点击
此处阅读全文
摘要:
发生的异常 ::0 formal unbound in pointcut
配置如下:
<aop:config>
<aop:aspect ref="operationCounter">
<aop:pointcut id="systemManagerPointCut"
expression="execution(* nt.facade.*.*(..))" />
& (全文共1375字)——点击
此处阅读全文
unix> bin/httpd.sh -Xmn100M -Xms500M -Xmx500M
win> bin/httpd.exe -Xmn100M -Xms500M -Xmx500M
install win service> bin/httpd.exe -Xmn100M -Xms500M -Xmx500M -install
-Xss1024k.
http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp
摘要:URL url = new URL("ftp://username:password@ftp.server.ip/file.txt;type=i"); (全文共638字)——点击
此处阅读全文
摘要:Annotation DI in Spring 2.* (全文共540字)——点击
此处阅读全文
Interpreter bsh = new Interpreter(); // Construct an interpreter
方法一:
bsh.eval("sum(int i1,int i2){return calc.sum(i1,i2);}");
方法二:
bsh.eval("importCommands(\"your package name\");"); //sum.bsh--必须在包路径中包含该名字的文
件
测试:
bsh.set("calc", new Calc());
System.out.println(bsh.eval("sum(1,2)"));
sum.bsh:
int sum(int i1,int i2){return calc.sum(i1,i2);}
Calc.java
public class Calc {
public int sum(int i1,int i2){
return i1+i2;
}
}
第1页,共8页