ITeye博客

天仁一的博客

天仁一 · 共 8 篇文章

一个tomcat下的几个web应用之间共享session

来自:http://blog.china.com.cn/dengshucai/art/485885.html 如何在一个tomcat下的几个web应用之间共享session 我们采取的是集中管理的办法。主要技术: 1.设置Context 的crossContext="true",使得各个web应用的servletcontext是可以互访的 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 2.…

2011-11-23 17:51 · tomcat session · 评论(0)

Cache tomcat

Session Cache Server 及Tomcat集群架构概念 或见本人CSDN博客 http://blog.csdn.net/myloon/archive/2010/09/06/5866456.aspx Sessin Cache Server (Session 缓存服务器) 特性: 单个SCS:SCS中缓存Session数据,多个应用服务器共享SCS中Session;每次有新的Session或新的Session数据更新时,除了正常的缓存外,还缓存有变化的Session ID和数据Key,以通知或被其他SCS感知同步数据;通过LRU算法,对不常使用的Session进行持久化(文件,数据…

2011-11-22 16:18 · 或见本人CSDN博客 http://blog.csdn.net/myloon/archive/2010/09/06/5866456.aspx · 评论(0)

项目图标报错,Problems 试图有一条错误显示“Java compiler level does not match the version of the

这个是因为Facted Project中的Java版本设定与项目的Java版本设定不一致

2011-06-09 19:04 · 评论(0)

Unable to locate the Javac Compiler(maven)

Unable to locate the Javac Compiler 默认分类 2009-12-31 19:14:20 阅读346 评论0 字号:大中小 订阅 使用eclipse的maven插件遇到一个问题,憋了我好几天,刚在忽然开窍,解决了。为这么个破问题耽误几天时间真不值得,特想骂人。 本人机子的开发环境如下: Windows XP eclipse 3.4.1 JDK 1.5 以下说明依据本人计算机环境进行设定。请根据自己使用的JDK版本和安装路径进行适当调整。 问题: Run as -> maven package 时,总是build failed. 错误: Unable to lo…

2011-06-01 00:03 · 评论(0)

struts2自定义tag

package com.exam.taglib.table; import org.apache.struts2.components.UIBean; import org.apache.struts2.views.annotations.StrutsTag; import org.apache.struts2.views.annotations.StrutsTagAttribute; import com.opensymphony.xwork2.util.ValueStack; import javax.servlet.http.HttpServletRequest; import jav…

2010-10-25 18:16 · 评论(0)

java annotation demo

package com.woyo.reader.cms.remote.service; import java.lang.reflect.Field; import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter; import org.springframework.stereotype.Service; import org.springframework.util.ReflectionUtils; import com.woyoframework.modules.sp…

2010-10-19 11:39 · 评论(0)

java取ip

网上看到的取IP的方法,觉的挺好。还想再linux、window下都管用 private static String getLocalSiteIP() throws Exception { String siteString = ""; Enumeration netInterfaces = NetworkInterface.getNetworkInterfaces(); while (netInterfaces.hasMoreElements()) { NetworkInterface ni = (NetworkInterface) netInterfaces.nextElement();…

2010-09-26 11:22 · 评论(0)

java对象转Map方法

package org.apache.commons.beanutils; import java.beans.PropertyDescriptor; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.Map; /** * @since 1.0 */ public class PageBeanUtilsBean extends BeanUtilsBean { @Override public Map<String, Object> describe(Ob…

2010-09-21 11:28 · 评论(0)