Skip to content

raycloud-dev/cobarclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobarclient

  1. 修改了一些小 bug
  2. 增加了 batch 操作

mvn install will package everything for you, including the documentations, the libraries, etc.

A quick-start can be found at http://code.alibabatech.com/wiki/display/CobarClient/Home

you can start with cobar-client by reading the docuemntation bundled with the distribution, the documentation is very elaborate.

GL & HF with cobar-client!

About The Versions

  • cobarclient1.x is for spring2.5.6 and ibatis2.3.x
  • cobarclient2.x is for spring3.x and ibatis2.3.x
  • cobarclient3.x is for spring3.x and mybatis 3.x

Rule Definition Migration

cobarclient1.x的XML形式的Rule定义可以无缝的迁移到cobarclient2.x下,但核心包不做这个功能, 可以单独开辟一个子项目来做这个事情。

迁移的实现逻辑很简单, 将XML形式的Rule解析为Route实体Bean定义加载即可。 可以写一个Set类型的FactoryBean,也可以自定义类做转换, 总之,转化为Set形式的结果之后传给SimpleRouter作为构造函数即可, 在cobarclient2.x中,最基础的做法是直接在SpringContainer的配置文件中配置Set以及相应的Bean定义。

我已经完成1.x到2.x过渡连接,具体样例配置:https://github.com/wy1100/cobarclient/blob/76d733e94d032ae9f3f5841a8fe286043cb26533/src/docs/demo/spring-web-datasource.xml

Lisence

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

About

基于iBatis和Spring的轻量级分布式数据访问框架(DDAL)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors