ITeye博客

2008 年文章归档

共 16 篇文章

不是很难,却是比较抓狂

几易其稿,终于在凌晨的时候画出了一个让自己比较满意的部署图了。画图这个事情不是很难,但是现在比较让我抓狂。现在让我回忆一下这几天画图的经过吧。 这两周我们又要为产品在系统架构方面画Architecture Diagram了。当然,Team里面每个人要为自己负责的产品画图。画图之前当然是有参照的,之前已经有Marketing和前任AR的人用PPT画了一些了,画得五颜六色的,在我眼中很好看。但是我们几个在小组讨论后决定用Visio画,但是图中的元素大部分还是从PPT中借鉴过来。这样至少风格不会有太大的出入。 说实话,我个人之前没有 画图的经验,就像我之前没有写FS的经验一样。对我来说,写几百行代…

2008-12-14 01:19 · 综合

XML/Web Service整理

XSLT: http://www.ibm.com/developerworks/cn/edu/x-dw-x-introxslt.html XPATH http://www.ibm.com/developerworks/cn/views/xml/tutorials.jsp?cv_doc_id=85118 http://www.w3schools.com/Xpath/xpath_syntax.asp http://xml.apache.org/xalan-j/ http://www.w3.org/TR/xpath-functions http://www.w3schools.com/Xpath/…

2008-12-08 19:33

RMI Tips

I’ve come across a lot of business logics in my company that take advantage of the RMI remoting technology. It’s said that the performance of RMI is not only poor, but also is too heavy. However some serious articles and benchmark tests argue that it’s not bad. And I also did some simple performanc…

2008-09-23 22:25 · 综合

Casual Test on Remoting Protocols

I’ve designed two scenarios to investigate three remoting protocols that said to have good performance, XML protocols are excluded. XML protocols are born to be slower than the native RMI and some light weight http based protocols like HttpInvoker and Hessian, etc. It seems HttpInvoker has a bit pe…

2008-09-12 22:30 · 综合

Life in Shell

awk '/HAPPINESS/ {print}' TOMORROW TOMMOROW ...| sed 's/SORROW/SMILES/g' We're pursuing happiness all our lives, along with which are sobs and weebs. Let's replace them with smiles and live a happy life .

2008-09-09 23:05 · 综合

单点登录(Single Sign On)设计实践

转到Architecture Team后接手了公司的Framework, 单点登录也就落到我头上了. 公司最开始使用的策略是基于Tomcat 的Realm SSO, 这种策略的缺点是所有应用都必须放在同一个Tomcat下面, 放到不同Tomcat下都必须再做一次登录. 非常不利于HA. (一)转到Architecture Team后我就向SDC的头提议了CAS的SSO策略. 1) The user choose to visit AMS 2) When the user arrived, AMS will first check to see if the user is authentic…

2008-08-08 12:29 · 综合

Tomcat 5.5 & Resin Rough Performance Comparison

Here's a rough performance test between Tomcat and Resin. The test was run on the same machine and with the same maximum memory of 256M. The Test Command: ab -c 2000 -n 10000 http://192.168.21.178:8080/bench/bench.jsp the size of bench.jsp is 32.6k and there is the image of size 48.4k. With the res…

2008-08-04 22:45 · 综合

把握现在,把握未来—2008 Java开发展望

过去的十二个月给来年预示了什么呢? By Andrew, JavaWorld.com 01/24/08 译者:ginge The future is now -- Java development in 2008 What do the past 12 months tell us about the year ahead? By Andrew Glover, JavaWorld.com, 01/24/08 the year 2007 was full of exciting plot twists, punctuated by growing excitement about dynami…

2008-03-29 12:22 · 综合

Note on JGroup Cluster of TCP_NIO Transport

Our application need to meet the reliable communication and the least data loss requirements for the JGroup cluster. The JGroup-2.6.1 release provides some out-of-box configurations in xml format. I choose the tcp-nio.xml configuration, because the inefficiency of the traditional IO model and unrel…

2008-03-24 11:22 · 综合

Have you known enough about DBCP?

【本文如需转载,请注明作者及出处】 I think a lot of people have misunderstanding about DBCP. What makes them think so? Cause' DBCP seems don't want to release database connection after use. Finally, all available connections got exhausted, and our application runs out of services. DBCP is weak and can not bear prod…

2008-03-16 22:25 · 综合

参加了Spring Framework 2.5 Reference翻译项目

哈哈,没想到俺也进入开源组织了,刚好将自己的翻译爱好继续下去 虽然大家都是自愿加入的,没钱,还有纪律要求,完成后最多也只是一个拥有一个署名权,但是还是高兴,像以前参与matrix翻译项目一样高兴,有事情做总比睡觉好。 来,转转这个项目的信息: Spring Framework 2.5 Reference翻译项目: http://wiki.redsaga.com/confluence/display/Spring2/Spring2.5 项目计划:概述:1、时间安排方面,在确保质量的前提下整个翻译工作在8周内完成,一期安排在4周内完成翻译(将有一个预览版本发布),随后4周进行一审和二审(不断发布…

2008-03-15 22:52

Spring, JBPM持久化系列--摆脱LazyInitializationException 二

Spring, Springmodules, JBPM持久化集成--摆脱 LazyInitializationException(Part2) Spring, Springmodules, JBPM持久化集成理解系列三 【本系列如需转载,请注明作者及出处】 到此,如果有朋友还是比较清醒的话,应该还会有疑问,在OpenSessionInViewFilter里如果是isSingleSession为true,并没有看到session的关闭,到底是在什么地方关闭了呢?它其实是在OpenSessionInViewInterceptor里关闭了的。 public void afterCompletion…

2008-03-04 23:45 · JBPM

Spring, JBPM持久化系列--摆脱LazyInitializationException

Spring, Springmodules, JBPM 持久化集成--摆脱LazyInitializationException(Part1) Spring, Springmodules, JBPM持久化集成理解系列三 【本系列如需转载,请注明作者及出处】 不管Jbpm的持久化策略如何,要重用Spring的持久化集成服务,我们要怎么做呢?Jbpm可以是B/S架构中的一部分,也可以是C/S架构的一部分。对于B/S架构,我们都知道有OpenSessionInViewFilter,然而C/S没有“Filter”,该从何入手呢? 我们先来看看OpenSessionInViewFilter是怎样做到的…

2008-03-04 23:23 · JBPM

Spring, Springmodules, JBPM持久化集成--优雅的背后(Part2)

Spring, Springmodules, JBPM持久化集成理解系列二 【本系列如需转载,请注明作者及出处】 本系列文章假设阅者具备以下知识: 1,ThreadLocal相关知识 2,Spring持久化,事务管理相关知识 3,Hibernate 持久化相关知识 4,Jbpm 持久化相关知识 5,Springmodules项目相关知识 6,相关J2EE知识 且具备以下材料: 1,Spring源代码 2,Hibernate源代码 3,Jbpm源代码 4,Springmodules源代码 第二部分,Session的关闭: 到了这里,我们就到了验证的最后一部分了,JbpmContext的关闭了。…

2008-03-04 00:15 · JBPM

Spring, Springmodules, JBPM持久化集成--优雅的背后(Part1)

Spring, Springmodules, JBPM持久化集成理解系列二 【本系列如需转载,请注明作者及出处】 本系列文章假设阅者具备以下知识: 1,ThreadLocal相关知识 2,Spring持久化,事务管理相关知识 3,Hibernate 持久化相关知识 4,Jbpm 持久化相关知识 5,Springmodules项目相关知识 6,相关J2EE知识 且具备以下材料: 1,Spring源代码 2,Hibernate源代码 3,Jbpm源代码 4,Springmodules源代码 本篇尝试探讨SpringModules集成的背后逻辑,这涉及到JbpmContext持久化的哲学。 Jbp…

2008-02-29 19:31 · JBPM

Spring, Springmodules, JBPM持久化集成--优雅的回调

Spring, Springmodules, JBPM持久化集成理解系列一 【本系列如需转载,请注明作者及出处】 本系列文章假设阅者具备以下知识: 1,ThreadLocal相关知识 2,Spring持久化,事务管理相关知识 3,Hibernate 持久化相关知识 4,Jbpm 持久化相关知识 5,Springmodules项目相关知识 6,相关J2EE知识 且具备以下材料: 1,Spring源代码 2,Hibernate源代码 3,Jbpm源代码 4,Springmodules源代码 接触JBPM始于两年多前,当时还在广州一个公司实习,公司打算研发ITIL相关的项目,于是就开始知道了工作流…

2008-02-29 01:12 · JBPM