原创 Random Access Files

Random access files permit nonsequential, or random, access to a file’s contents. To access a file randomly, you open t

原创 MYSQL 8 Hours Time out Problem

I am using MYSQL 5.0 and Tomcat 5.5. After 8 hours , MYSQL closes by default all idle connections and so I am getting a

原创 ActiveMQ初體驗

MQ(MessageQueue),消息隊列,消息的接受和轉發的容器,可用於消息推送。 ActiveMQ是Apache出品的一個開源的消息隊列軟件,運行在JVM下,支持多種語言,如JAVA,C++,C#。 1、下載 去官方網站下載:htt

原创 Java NIO Files

The Java NIO Files class (java.nio.file.Files) provides several methods for manipulating files in the file system. This

原创 消息隊列的使用場景是怎樣的?

rebbitmq,activemq 跨系統的異步通信,所有需要異步交互的地方都可以使用消息隊列。就像我們除了打電話(同步)以外,還需要發短信,發電子郵件(異步)的通訊方式。 多個應用之間的耦合,由於消息是平臺無關和語言無關的,

原创 高性能I/O設計模式Reactor和Proactor

系統I/O可分爲阻塞,非阻塞同步和非阻塞異步三類,非阻塞異步模式的擴展性和性能最好。 IO多路複用模式:Reactor和Proactor。 爲Reactor和Proactor模式構建一個通用的,統一的對外接口並是一個完全可移植的開發框

原创 Why NoSQL?

The Demands of Your Database are Changing NoSQL technology was pioneered by leading internet companies — including Goog

原创 Java NIO 2.0 : Memory-Mapped Files | MappedByteBuffer Tutorial

If you know how java IO works at lower level, then you will be aware of buffer handling, memory paging and other such c

原创 RMI與RPC

分佈式對象(Distributed Objects) 架構實例有CORBA/RMI/DCOM/.NET Remoting 遠程過程調用(Remote Procedure Call) 架構實例有SOA