2014年8月8日

摘要: Good about Java:friendly syntax, memory management[GC can collect unreferenced memory resources], object-oriented features, portability.StackStores me... 阅读全文

posted @ 2014-08-08 22:03 chayu3 阅读(195) 评论(0) 推荐(0) 编辑

摘要: Define routes:Either using Spring xml or Java DSL.Spring xml: //to load the Java DSL routes defined in MyRouteBuilder class //to load the routes... 阅读全文

posted @ 2014-08-08 21:12 chayu3 阅读(270) 评论(0) 推荐(0) 编辑

2014年8月7日

摘要: UNIX is a multi-user multitasking-optimized operating system that can run on various hardware platforms.Linux is basically an open-source clone of UNI... 阅读全文

posted @ 2014-08-07 22:35 chayu3 阅读(382) 评论(0) 推荐(0) 编辑

2014年8月5日

摘要: 个人理解:定义.proto文件就是指明消息里包含的成员和类型,protoc会compile成相应的java文件包含interface和implementation class,然后在构建message的时候要使用builder,然后写到outputstream里。应用实例:ByteArrayOutp... 阅读全文

posted @ 2014-08-05 22:16 chayu3 阅读(243) 评论(0) 推荐(0) 编辑

2014年7月30日

摘要: 1, IndexAn index is a set of data pointers stored on disk associated with a single table. The main advantage is they greatly speed up select, update, ... 阅读全文

posted @ 2014-07-30 17:21 chayu3 阅读(252) 评论(0) 推荐(0) 编辑

2014年1月24日

摘要: Camel is mainly for integration purpose, in our project we also use it inside the single component to do msg processing.And actually Camel is not good at msg correlation, while CEP does. But since Camel has a lot of useful connectors[solace, our own tibrv, quickfix, ssh....], we choose Camel. 阅读全文

posted @ 2014-01-24 21:50 chayu3 阅读(97) 评论(0) 推荐(0) 编辑

2014年1月2日

摘要: INotifyPropertyChanged向客户端发出某一属性值已更改的通知。namespace System.ComponentModel{ // Summary: // Notifies clients that a property value has changed. public interface INotifyPropertyChanged { // Summary: // Occurs when a property value changes. event Prop... 阅读全文

posted @ 2014-01-02 21:25 chayu3 阅读(353) 评论(0) 推荐(0) 编辑

2013年12月30日

摘要: Windows Communication Foundation (WCF) uses a serialization engine called the Data Contract Serializer by default to serialize and deserialize data (convert it to and from XML).Adata contractis a formal agreement between a service and a client that abstractly describes the data to be exchanged.Seria 阅读全文

posted @ 2013-12-30 22:40 chayu3 阅读(3568) 评论(0) 推荐(0) 编辑

2013年12月13日

摘要: They modify the POM at build time, and are meant to be used in complementary sets to give equivalent-but-different parameters for a set of target environments (providing, for example, the path of the appserver root in the development, testing, and production environments). \Profiles specified in the 阅读全文

posted @ 2013-12-13 22:59 chayu3 阅读(298) 评论(0) 推荐(0) 编辑

2013年12月7日

摘要: Mock和Stub的区别:1,Stub是一个在你的测试代码中需要用到的object,你可以为它设置expectations,然后它就会按其运行,但是这些expectations不会被核对。2,Mock的区别就是expectations会被核对。所以Stub从来不会导致test fail。Examples:http://ayende.com/wiki/Rhino+Mocks+3.5.ashx 阅读全文

posted @ 2013-12-07 01:33 chayu3 阅读(466) 评论(0) 推荐(0) 编辑