??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av乱码一区二区三区,亚洲成综合人影院在院播放,久久亚洲sm情趣捆绑调教http://www.tkk7.com/hywavesoft/专注于J2EE企业开发解x?/description>zh-cnSun, 11 May 2025 17:50:20 GMTSun, 11 May 2025 17:50:20 GMT60- SOA基础设施QXFire客户端流E分?/title>http://www.tkk7.com/hywavesoft/archive/2008/03/02/183262.htmlTonySoftTonySoftSun, 02 Mar 2008 07:12:00 GMThttp://www.tkk7.com/hywavesoft/archive/2008/03/02/183262.htmlhttp://www.tkk7.com/hywavesoft/comments/183262.htmlhttp://www.tkk7.com/hywavesoft/archive/2008/03/02/183262.html#Feedback7http://www.tkk7.com/hywavesoft/comments/commentRss/183262.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/183262.html
本文_略的介l了XFire客户端的调用程Qƈ着重讲解了Handler的扩展机制及其应用场景,力求读者能够通过本文对XFire能有更加深入的了解和掌握。文中难免存在不之处,Ƣ迎M形式的交?nbsp; 阅读全文
]]> - ~写q净的单元测试用例——Callback & Template Pattern在单元测试中的应?/title>http://www.tkk7.com/hywavesoft/archive/2007/12/28/171321.htmlTonySoftTonySoftFri, 28 Dec 2007 13:19:00 GMThttp://www.tkk7.com/hywavesoft/archive/2007/12/28/171321.htmlhttp://www.tkk7.com/hywavesoft/comments/171321.htmlhttp://www.tkk7.com/hywavesoft/archive/2007/12/28/171321.html#Feedback1http://www.tkk7.com/hywavesoft/comments/commentRss/171321.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/171321.html阅读全文

]]> - EasyJWeb中如何用Google Guice容器http://www.tkk7.com/hywavesoft/archive/2007/08/16/137410.htmlTonySoftTonySoftThu, 16 Aug 2007 14:48:00 GMThttp://www.tkk7.com/hywavesoft/archive/2007/08/16/137410.htmlhttp://www.tkk7.com/hywavesoft/comments/137410.htmlhttp://www.tkk7.com/hywavesoft/archive/2007/08/16/137410.html#Feedback2http://www.tkk7.com/hywavesoft/comments/commentRss/137410.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/137410.html本文力求z,希望通过一个简单的demo应用讲解EasyJWeb与Guice容器的集成?br>
通过EasyJWeb提供的超UIoC容器Q你可以非常L的把Guice容器集成q来Q让Guice来管理业务层的依赖关p,EasyJWeb只负责表现。我们看下面的配|:
<?xml version="1.0" encoding="utf-8"?>
<easyjf-web>
<modules inject="auto">
<module name="guice" path="/guice" form="" scope="request" action="com.easyjf.demo.action.GuiceAction" defaultPage="index" >
<page name="index" url="/guice.html" type="template"/>
</module>
</modules>
<beans>
<bean name="GuiceContainer" class="com.easyjf.container.impl.GuiceContainer" scope="singleton">
<property name="modules">
<list>
<value>com.easyjf.demo.module.GuiceModule</value>
</list>
</property>
<property name="stage">

<value>DEVELOPMENT</value>

</property>
</bean>
</beans>
</easyjf-web>
熟悉EasyJWeb的朋友都知道Q上面的配置通过/guice.ejf便可以访问GuiceAction业务。特别之处在于我们在q里配置了一?#8220;GuiceContainer”的beanQ该bean负责集成EasyJWeb与Guice。属性modules的每个类都要l承Guice的AbstractModulec,以实现客户化的装配逻辑Qstage属性代表Guice容器的运行环境,既生产环境或开发环境。下面我们看一下上面配|文件中GuiceModule的实玎ͼ

/** *//**
*
* @author ecsoftcn@hotmail.com
*
* @version $Id: GuiceModule.java, 2007-4-23 上午03:31:33 Tony Exp $
*/

public class GuiceModule extends AbstractModule
{


/**//*
* @see com.google.inject.AbstractModule#configure()
*/
@Override

protected void configure()
{
this.bindInterceptor(any(), annotatedWith(Logging.class), new LoggingInterceptor());

}

}
至于q个cȝ具体装配逻辑我在此不详细描述Q读者只要知道是l定拦截器就可以了,有兴的可以参阅Guice的文。在configureҎ中,你可以随心所Ʋ的实现M客户化的装配逻辑。接下来我们再看一下上面GuiceAction的实玎ͼ

/** *//**
*
* @author ecsoftcn@hotmail.com
*
* @version $Id: GuiceAction.java, 2007-4-23 上午03:15:47 Tony Exp $
*/
@SessionScoped

public class GuiceAction implements IWebAction
{

@Inject
private GuiceService guiceService;

private int count = 0;


/**//*
* @see com.easyjf.web.IWebAction#execute(com.easyjf.web.WebForm, com.easyjf.web.Module)
*/
@Logging

public Page execute(WebForm form, Module module) throws Exception
{

count++;

form.addResult("message", guiceService.sayHelloToGuice());

form.addResult("count", count);

return module.findPage("index");
}

}
注意C面的代码中,GuiceAction实现了EasyJWeb的IWebAction接口Q不同的地方是这个类中多了几个Annotation:@SessionScoped,@Inject和@LoggingQ?@SessionScoped代表该类的作用域Q@Inject代表该类引用了Guice容器中的一个bean[GuiceService]Q@Logging代表q个Ҏ需要记录日志,是通过刚才的拦截器实现的。下面给出GuiceService极其实现c:

/** *//**
*
* @author ecsoftcn@hotmail.com
*
* @version $Id: GuiceService.java, 2007-4-23 上午03:16:20 Tony Exp $
*/
@ImplementedBy(GuiceServiceImpl.class)

public interface GuiceService
{
public String sayHelloToGuice();

}
实现Q?br>

/** *//**
*
* @author ecsoftcn@hotmail.com
*
* @version $Id: GuiceServiceImpl.java, 2007-4-23 上午03:17:24 Tony Exp $
*/
@Singleton

public class GuiceServiceImpl implements GuiceService
{


/**//*
* @see com.easyjf.demo.GuiceService#sayHelloToGuice()
*/
@Logging

public String sayHelloToGuice()
{
System.out.println("Execute GuiceServiceImpl#sayHelloToGuice()");
return "Hello, Guice!";

}

}
q两个类中都使用了Guice的Annotation来声明装配原则,具体含义请参考Guice文?br>
到此为止Q一个简单的Demoq介绍完了Q欢q交?

]]>- 关于q程调用QXFire/HttpInvoker/Hessian etc.Q及q程服务理的一些随?/title>http://www.tkk7.com/hywavesoft/archive/2007/03/17/service-xfire-hessian-httpinvoker.htmlTonySoftTonySoftSat, 17 Mar 2007 06:07:00 GMThttp://www.tkk7.com/hywavesoft/archive/2007/03/17/service-xfire-hessian-httpinvoker.htmlhttp://www.tkk7.com/hywavesoft/comments/104448.htmlhttp://www.tkk7.com/hywavesoft/archive/2007/03/17/service-xfire-hessian-httpinvoker.html#Feedback3http://www.tkk7.com/hywavesoft/comments/commentRss/104448.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/104448.html
无论使用那种技术,其基本原理都是一LQ服务端生成骨架Q对外暴露服务;客户端生成服务代理,讉K调用服务。通常情况下,生成服务代理的代h较高昂,q也是我们第一ơ访问远E服务速度比较慢的原因Qؓ每个h生成新的服务代理恐怕不是我们所期望的。更何况Q如果采用这U方式,p在代码里针对各种不同的技术(如XFire、HttpInvokerQ编写不同的服务生成和调用的处理代码。不仅麻烦,而且Ҏ出错。我惻I没有人愿意去直接操作各种框架技术的底层代码Q这q不是一个好注意Q?
作ؓ一U替代方案,我们设计了一个“服务池”的功能Q或者说“服务工厂”更贴切一炏V先看下面这张类图:
阅读全文
]]> - iBatis框架batch处理优化http://www.tkk7.com/hywavesoft/archive/2006/12/16/88073.htmlTonySoftTonySoftFri, 15 Dec 2006 16:07:00 GMThttp://www.tkk7.com/hywavesoft/archive/2006/12/16/88073.htmlhttp://www.tkk7.com/hywavesoft/comments/88073.htmlhttp://www.tkk7.com/hywavesoft/archive/2006/12/16/88073.html#Feedback0http://www.tkk7.com/hywavesoft/comments/commentRss/88073.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/88073.html
Oracle回滚D?
在JDBC中如何做batch处理
iBatis框架对batch处理的支?
iBatis框架做batch处理的问?
修改底层代码Q支持多表batch处理
阅读全文
]]> - WEB Application Design without Struts,Tapestry,Webwork ?http://www.tkk7.com/hywavesoft/archive/2005/12/13/23639.htmlTonySoftTonySoftTue, 13 Dec 2005 05:09:00 GMThttp://www.tkk7.com/hywavesoft/archive/2005/12/13/23639.htmlhttp://www.tkk7.com/hywavesoft/comments/23639.htmlhttp://www.tkk7.com/hywavesoft/archive/2005/12/13/23639.html#Feedback0http://www.tkk7.com/hywavesoft/comments/commentRss/23639.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/23639.htmlWEB Application Design without Struts,Tapestry,Webwork ?
如今JAVA WEB开发领域出C许多优秀的framework,像Struts ,Tapestry,Webwork{?而且框架的数量惊人竟辑ֈ50多种!每种框架都有自己的优点和~点,但是Z仍重复的d发功能一L东西,而不是在原有的基上去完善和丰富内?g有些可悲.
在l进行介l前请先看看下面一D介l?
- HTML和JAVA之间明确分离
- 面向对象的组件模?/FONT>
- 自动化状态管?/FONT>
- 较高的生产率
- 较低的学习曲U?/FONT>
- 从Servlet API 和HTTP协议l节中抽d?/FONT>
- 没有XML格式的配|文?/FONT>
- 更容易的开发可重用的组?/FONT>
- 下面是原?我E文不?不对的地方请多多谅解!
- Clean separation of concerns between HTML and Java
- Object-oriented component model
- Automated state management
- High productivity
- Low learning curve
- Abstraction away from Servlet API and HTTP protocol details
- No XML configuration files
- Easy to build reusable components
q是不是你正在苦苦寻扄~程模式??STRONG>Wicket的主去看看?也许哪里会让你感到惊?即便是你不打用他,你仍然可以学到很多优U的设?
更多内容请关注本BLOG!

]]> - 今天甌加入了大q?NET开发团?/title>http://www.tkk7.com/hywavesoft/archive/2005/12/08/23048.htmlTonySoftTonySoftThu, 08 Dec 2005 14:49:00 GMThttp://www.tkk7.com/hywavesoft/archive/2005/12/08/23048.htmlhttp://www.tkk7.com/hywavesoft/comments/23048.htmlhttp://www.tkk7.com/hywavesoft/archive/2005/12/08/23048.html#Feedback0http://www.tkk7.com/hywavesoft/comments/commentRss/23048.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/23048.htmlhttp://www.cnblogs.com/ecsoftcn

]]> - 发现一个开源的WEB报表解决Ҏhttp://www.tkk7.com/hywavesoft/archive/2005/12/07/22844.htmlTonySoftTonySoftWed, 07 Dec 2005 05:28:00 GMThttp://www.tkk7.com/hywavesoft/archive/2005/12/07/22844.htmlhttp://www.tkk7.com/hywavesoft/comments/22844.htmlhttp://www.tkk7.com/hywavesoft/archive/2005/12/07/22844.html#Feedback0http://www.tkk7.com/hywavesoft/comments/commentRss/22844.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/22844.html
OpenReports开源WEB报表解决Ҏ http://www.oreports.com ,q个目使用 JasperReports,WebWork, Velocity, Quartz, and Hibernate{多个开源项?非常值得学习!
]]> - DWR?/title>http://www.tkk7.com/hywavesoft/archive/2005/12/06/22714.htmlTonySoftTonySoftTue, 06 Dec 2005 06:47:00 GMThttp://www.tkk7.com/hywavesoft/archive/2005/12/06/22714.htmlhttp://www.tkk7.com/hywavesoft/comments/22714.htmlhttp://www.tkk7.com/hywavesoft/archive/2005/12/06/22714.html#Feedback0http://www.tkk7.com/hywavesoft/comments/commentRss/22714.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/22714.html今天在网上闲逛时,无意看到了一介lDWR的文?感觉译的不?特引用过?
http://www.jscud.com/srun/news/viewhtml/2_2005_8/113.htm
接下来我会随时增加DWR学习W记
]]> - Struts文g上传http://www.tkk7.com/hywavesoft/archive/2005/12/06/22677.htmlTonySoftTonySoftTue, 06 Dec 2005 02:46:00 GMThttp://www.tkk7.com/hywavesoft/archive/2005/12/06/22677.htmlhttp://www.tkk7.com/hywavesoft/comments/22677.htmlhttp://www.tkk7.com/hywavesoft/archive/2005/12/06/22677.html#Feedback1http://www.tkk7.com/hywavesoft/comments/commentRss/22677.htmlhttp://www.tkk7.com/hywavesoft/services/trackbacks/22677.html阅读全文

]]>
վ֩ģ壺
ĻĻmv|
AVһɫ|
οŮվѴȫ|
˾ƷŮ˾þþ
|
һ|
99ƷƷ|
պ˳ۺձ|
Ƶֻ߹ۿַ|
ƷëƬ|
ȾþǾƷ6ѹۿ|
岻߹ۿ|
ŷƵվ|
þþƷAVվ|
|
˳ëƬ߲|
ŷƷһ|
ݺȾƷѹۿ|
ĻŮһ|
߹ۿ|
avһ|
ȺӰԺ߹ۿѹۿֱ|
ƷͼƬ|
ձһ|
ѹva߹ۿ|
AV|
ĻƵww
|
A߷|
ŷۺ߹ۿ|
ȫƵѹۿ߿|
߲|
Ƶѹۿ97|
AAAAAٸ߳Ƭѿ|
ַ߹ۿ|
jizzjizzѿjizz|
߿Ƭ˳Ƶ|
ĻƷ|
ɫɫwww˿|
žžƷƵ|
þø߳һëƬ|
ҹ߲|
˳wwwӰҳ
|