- 浏览: 369629 次
- 性别:
- 来自: 北京
最新评论
-
y806839048:
启动activemq我试了,也不行
ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息 -
y806839048:
是不是要另外启动activemq
ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息 -
y806839048:
为什么我的两个应用中,不能实现通信
ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息 -
fengfujie:
[flash=200,200][/flash][tr][th] ...
JMS消息类型模型 -
fengfujie:
...
JMS消息类型模型
文章列表
There are three kinds of optimization.
1. Optimization by using a more sensible overall approach.
2. Optimization by making the code less weird.
3. Optimization by making the code more weird.
You've probably heard, and maybe even spouted yourself, the phrase "premature optimization is ...
- 2008-04-17 09:49
- 浏览 1317
- 评论(0)
2008-03-28 - Release of Unitils 1.1 rc 1
We've been working hard to implement following features: JPA integration, support for hierarchically organized database scripts, support for Oracle PL/SQL in database scripts. Also, Unitils' transaction management and hibernate integration have been re-implem ...
- 2008-04-10 11:25
- 浏览 1541
- 评论(0)
jdk5.0引入Annotation语法,@Target中的ElementType包括
ElementType.ANNOTATION_TYPE 应用于其他注解的元注解
ElementType.CONSTRUCTOR 构造函数
ElementType.FIELD 字段
ElementType.LOCAL_VARIABLE 方法中的本地变量
ElementType.METHOD 方法
ElementType.PACKAGE 包
ElementType.PARAMETER 方法的参数
ElementType.TYPE 类,接口或者枚举声明
ElementType.LOCAL_VARIAB ...
Unitils是单元测试的一组工具集,介绍见http://www.iteye.com/topic/160004Dbdeploy是Thoughtworks公司开发的数据库工具,获得Jolt大奖。 Unitils有自己的一个管理类似于dbdeploy的管理数据库的module -- DBMaintainer,其要求的sql文件名称格式如下所示,要求使用下划线分隔001_create_users_table.sqlDbdeploy要求的sql文件格式使用空格分隔1 create users table.sql如果在项目中同时使用了dbdeploy和unitils(dbdeploy比dbmaintain ...
图灵出版社官方Hibernate实战(第2版)链接为:
http://www.turingbook.com/Books/ShowBook.aspx?BookID=260
书 名: Hibernate实战(第2版)
评论星级: ****
书 号: 978-7-115-17448-2
原 书 名: Java Persistence with Hibernate
原出版社: Manning Publications
丛 书 名: 图灵程序设计丛书
分 类: 计算机 >> 程序设计 >> Java
作 者: Christian Bauer, Gavin ...
- 2008-04-05 21:56
- 浏览 1717
- 评论(3)
com.danga.MemCached 发布2.0.1包括许多重要更新,建议升级至2.0.1
引用Released version 2.0.1 today. Many bug fixes on the 2.0 branch. You should use this and *not* use the 2.0 release.
- 2008-04-05 21:39
- 浏览 2332
- 评论(0)
Stream result type是Struts2中比较有用的一个feature。特别是在动态生成图片和文档的情况下;例如动态验证码,各种报表图片生成等。鉴于网上使用struts2生成动态验证码,struts2+jfreechart的例子中很少使用到该feature,这里以生成动态验证码为例解释stream result的使用: Action类,action主要要提供一个获取InputStrem的方法public class CheckCodeAction extends ActionSupport implements SessionAware {
private Logger lo ...
使用Ibatis时,为了获得更好的性能,我们一般都会将enhancementEnabled设为true,使用cglib。如果从ibatis获取的domain object需要序列化,这时就需要注意有可能出现如下异常:java.io.NotSerializableException: $java.util.List$$EnhancerByCGLIB$$a80b8ab4
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject ...
作者: 于敦德 2006-3-16
原文: http://www.example.net.cn/archives/2006/03/olivejournaloio.html
一、LiveJournal发展历程
LiveJournal
是99年始于校园中的项目,几个人出于爱好做了这样一个应用,以实现以下功能:
博客,论坛
社会性网络,找到朋友
聚合,把朋友的文章聚合在一起
LiveJournal采用了大量的开源软件,甚至它本身也是一个开源软件。
在上线后,LiveJournal实现了非常快速的增长:
2004年4月份:280万注册用户。
2005年4月份:680万注册用户。
2 ...
- 2008-03-03 17:59
- 浏览 1873
- 评论(0)
使用Spring @AspectJ方式的AOP,代码@Aspect
public class AndyaoAspect {
@Pointcut("execution(* com.andyao.Repository.get(java.lang.Integer))&& args(id)")
public void get(Integer id){
}
@Around("get(id)")
public Object fromCache(ProceedingJoinPoint pjp, Integer id) thro ...
原文:http://dev2dev.bea.com.cn/techdoc/2007/10/exception-advice.html
作者:Barry Ruzek 摘要
有效的异常处理策略是一大架构关注点,它超越了独立应用程序组件的边界。有效的Java异常(Dev2Dev
中文版,2007年2月)概述了错误-意外事件(Fau ...
- 2008-02-28 15:16
- 浏览 2139
- 评论(2)
原文http://google-perftools.googlecode.com/svn/trunk/doc/tcmalloc.html
Sanjay Ghemawat
Motivation
TCMalloc is faster than the glibc 2.3 malloc (available as a
separate library called ptmalloc2) and other mallocs that I have
tested. ptmalloc2 takes approximately 300 nanoseconds to execute a
malloc/f ...
- 2008-02-14 17:39
- 浏览 2216
- 评论(0)
今天遇到一个非常奇怪的spring容器问题,先看日志]-303 Loading XML bean definitions from class path resource [com/eucita/component/activemq/applicationContext-activemq-topic.xml]
-75 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]
r]-103 Trying to resolve XML entity with public id [null] and system ...
http://www.china-pub.com/38003
机工版,纸张一如既往的差。内容主要讲的是从实践角度讲持续集成。CI领域的重要文章Martin Flower的《Continuous Integration》主要是讲一种思想和理论。这本书算是一个CI的指导手册,讲述了CI的背景,以及持续数据库集成,持续测试,持续审查,持续部署和持续反馈,算是一本比较好的CI书籍。
最后还是要说,机工的书纸张真差,买的书中最烂属机工;以后机工的书打死也不买了。
- 2008-01-29 23:37
- 浏览 1685
- 评论(0)
/***作者:andyao,email:andyaoy@gmail.com*http://andyao.iteye.com/blog/160004*/ Unitils(http://www.unitils.org/summary.html)是一个简化测试开发,提高测试维护性的一个开源项目,这里有开发者做的一个presentation(http://www.parleys.com/display/PARLEYS/Unitils)。目前提供的功能为:General testing utilities :提供一些测试的辅助方法,主要是通过反射进行数据验证。Database testing utilit ...