推荐:构造JSP和Javabean开发和发布环境的方法以Java为基础的J2EE是最新的电子商务解决方案,其复杂性和开发工具系统的昂贵也使不少人却步.在实际项目应用中,真正需要完全使用J2EE方案的并不多,面对中小型企业电子商务应用,下列组合足够
JBoss中使用EJB有状态bean钝化时间设置:
修改 standardjboss.xml 文件
Standard Stateful SessionBean
false
stateful-rmi-invoker
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor
org.jboss.ejb.plugins.TxInterceptorBMT
org.jboss.ejb.plugins.CallValidationInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
org.jboss.ejb.plugins.SecurityInterceptor
org.jboss.ejb.plugins.StatefulSessionInstanceCache
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager
org.jboss.ejb.plugins.LRUStatefulContextCachePolicy
50
1000000
1800
1800
300
600'默认时间为600秒,修改为自己需要的
400
60
1
0.75
100
分享:Java中计算任意两个日期之间的工作天数主要思路: 对于任意2个日期比如:date_start=2006-10-1、date_end=2006-10-14 ,首先计算这连个日期之间的时间间隔(天数),然后分别对date_start 和date_end 取得它们下一个星期一的日