- 博客(29)
- 资源 (5)
- 收藏
- 关注
原创 mysql logs
references:http://dev.mysql.com/doc/refman/4.1/en/server-logs.htmllog 的开启注意要相关的global variables 置成on1)在my.ini里面配置log_bin=ongeneral_log=on//event_scheduler=12)运行中,但是server重启后会恢复成默认配置
2015-03-20 15:26:53 876
转载 mysql:show [full] processlist
references:http://dev.mysql.com/doc/refman/5.5/en/thread-information.html命令:show [full] processlistEach process list entry contains several pieces of information: Id is the connection
2015-03-18 11:19:22 919
原创 solr 一 getting start
http://www.cnblogs.com/hoojo/archive/2011/10/21/2220431.html
2014-12-29 14:03:31 598
原创 zookeeper 1-getting start
参考文献:http://zookeeper.apache.org/doc/r3.4.6/zookeeperStarted.htmlhttp://www.blogjava.net/BucketLi/archive/2010/12/21/341268.html步骤1.下载wget http://mirror.bit.edu.cn/apache/zookeeper/sta
2014-12-29 11:23:13 1176
原创 Solr 二--core 核心源码解读和如何写solr plugin
从web.xml 开始找到web 入口Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additio
2014-12-12 17:23:24 965
转载 memcache,redis,mongodb 比较
1.System Properies Comparisonhttp://db-engines.com/en/system/Memcached%3BMongoDB%3BRedis
2014-05-07 12:07:32 495
转载 Top 10 Websites for Advanced Level Java Developers
from:http://www.programcreek.com/2013/09/top-10-websites-for-advanced-level-java-developers/http://stackoverflow.com/http://www.dzone.comhttp://leetcode.com/http://docs.oracle.com/javase/htt
2013-11-11 10:43:04 547
原创 跨db的动态数据源的transaction-3.如何使用动态数据源in mybatis
public class DynamicSqlSessionDaoSupport extends JdbcDaoSupport implements InitializingBean{ private static Logger logger=(Logger) LoggerFactory.getLogger(DynamicSqlSessionDaoSupport.class); pri
2013-11-07 14:50:39 830
原创 跨db的动态数据源的transaction- 2.动态数据源
先参考:http://www.itblog8.cn/java/20130425101.htmlpublic class DataSourceContextHolder { private static final ThreadLocal contextHolder=new ThreadLocal(); /** * @param dsIndex */ public stati
2013-11-07 14:15:48 1242
转载 Atomikos 性能提高8倍
From: http://blog.sina.com.cn/s/blog_53765cf9010176zx.html 使用spring的代理datasource来让spring管理事务,性能问题解决,提高8倍ceProxy"> 1. Atomikos从池里取得connection时,每次都会去进行select test,这个对获取连接
2013-11-07 13:51:11 5369
原创 跨db的动态数据源的transaction- 1动态读取数据源取代配置文件中一一配置
package com.microstrategy.alert.ns.datasources;import java.util.Properties;import org.springframework.beans.factory.InitializingBean;import com.microstrategy.alert.ecommerce.db.DataSourceConfig;
2013-11-06 17:27:02 1410
原创 spring:remoting
参考:http://static.springsource.org/spring/docs/3.1.2.RELEASE/spring-framework-reference/html/remoting.html1.beanpackage cmei.spring.integration.remote.dto;import java.io.Serializable;public c
2012-12-05 15:14:58 1080
原创 spring beans
bean的生命周期Bean is ready for use:1.container找到bean类的定义并实例化该bean2.使用DI,设置属性。(调用setXXX)3.如果Bean实现了BeanNameAware,factory 将bean的id传入setBeanName()4.如果Bean实现了BeanFactoryAware,factory 讲自身的实例传入setBean
2012-07-26 17:55:49 611
原创 spring:Task Execution and scheduler
参考:spring3.0 document:http://static.springsource.org/spring/docs/3.1.2.RELEASE/spring-framework-reference/html/scheduling.html1.General Task Example 1) 自己创建继承Thread或者实现Runnable接口的Task:pac
2012-07-23 18:09:13 2481
翻译 spring transaction
1.different transaction implementations1)org.springframework.jdbc.datasource.DataSourceTransactionManagerManages transactions on a single JDBCDataSource.2)org.springframework.orm.hibernate.Hib
2012-07-10 16:31:17 549
转载 spring 注解
http://blog.csdn.net/ljhabc1982/article/details/6697621四种集合的注入:Java.util.Listsomevalue valuexxx Java.util.Setsomevalue valuexxx
2012-06-27 10:49:39 291
原创 多数据源事务管理 Atomikos
1. 选择哪种transaction manager? 在单数据源情况下,JDBC,Hibernate,ibatis等自带的 transaction manager已能用于处理事务。 但当设计多种数据源的事务处理时,上面的transaction manager就没法用了。这个时候可选事务管理组件有:Bitronix,SimpleJTA,Tyrex (dead?), JOT
2012-06-27 10:00:03 3604
原创 设计模式区分
1.代理模式与适配器模式、装饰模式、门面模式 1)适配器模式的用意是要改变所考虑的对象的接口,而代理模式并不能改变所代理的对象的接口。 2)装饰模式应当为所装饰的对象提供增强功能,而代理模式对对象的使用施加控制,并不提供对象本身的增强功能。 3)有时候门面模式兼任代理的责任。门面对象可能是一个位于另一个地址空间的子系统的远程代理。
2012-04-18 17:22:32 474
原创 jar包 配置文件路径问题
1. System.getProperty("user.dir") 在ecplise里面会是当前工程根目录 而打包后,得到的是jar包所在的跟目录。2.Class.getResourceAsStream ("/some/pkg/resource.properties"); 需要"/"3.ClassLoader.getResourceAsStream ("some/pk
2011-12-26 12:54:55 880
原创 Thread.sleep() 是否释放ReentrantLock?
The Thread.sleep() method effectively "pauses" the current thread for a given period of time. We used it in our very firstthreading exampl
2011-09-08 09:54:11 1091 1
原创 switch.... break
好多年没用swith了,今天写一个test case用了swith语句,结果出现一个bug却怎么找不到原因,百思不接其解。最后去查swith用法(原来我以为它只是if..else替代),才原来自己错了,连swith不仅仅是if...else的替代(需要加上break才是if..e
2011-07-29 11:34:27 366
原创 Spring AOP (二) 碰到的一些Exceptions
1. can't find referenced pointcut Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut 有关这个问题,我搜索了
2011-07-14 11:38:15 604
原创 spring & aop- hello world (一)
1. 首先下载准备需要的包: 1)spring framework 3.0.x: http://www.springsource.com/download/community?sid=1220898 spring3.0 以上与前面的版本目录不同,下载解压后不再是一个spring.jar包,而是根据不同的需要将其分开在dist目录下。用户可以根据需要选择。
2011-07-14 11:05:05 440
原创 windows 上memcached初步使用-java版
参考:http://q.sohu.com/forum/5/topic/640252 http://danga.com/memcached/ http://code.jellycan.com/memcached/1.下载: memcached
2011-07-07 15:12:46 1089
开源的语法分析工具Another Tool for Language Recognition
2011-06-29
Efficient C++ Performance Programming Techniques
2010-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人