关闭

How to call stored procedure in Hibernate

In this tutorial, you will learn how to call a store procedure in Hibernate.MySQL store procedureHere’s a MySQL store procedure, which accept a stock code parameter and return the related stock data.DE...
阅读(464) 评论(0)

文章标题

In this tutorial, we will take the previous Spring MVC hello world XML-based, and convert it to a annotation-based project.Technologies used : Spring 2.5.6 JDK 1.6 Maven 3 Eclipse 3.6 1. Directory Stru...
阅读(220) 评论(0)

Java Non-Blocking and Asynchronous IO with NIO & NIO.2 (JSR203) - Reactor/Proactor Implementations

Proactor/Reactor asynchronous IO patterns. I can see how by using selectable channels I can implement a Reactor style asynchronous IO mechanism quite easy (and have done so). But, I cannot see how I wo...
阅读(241) 评论(0)

How to Change the MySQL Timeout on a Server

A MySQL server timeout can occur for many reasons, but happens most often when a command is sent to MySQL over a closed connection. The connection could have been closed by the MySQL server because of...
阅读(320) 评论(0)

iBATIS - Hibernate

There are major differences between iBATIS and Hibernate. Both the solutions work well, given their specific domain. iBATIS is suggested in case − You want to create your own SQL’s and you are willing...
阅读(211) 评论(0)

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 an SQL Exception .Any solution to this problemWhich connection pool are you using?...
阅读(331) 评论(0)

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 concepts. For conventional file I/O, in which user processes issue read() and write...
阅读(204) 评论(0)

Java NIO Files

The Java NIO Files class (java.nio.file.Files) provides several methods for manipulating files in the file system. This Java NIO Files tutorial will cover the most commonly used of these methods. The F...
阅读(233) 评论(0)

Java NIO AsynchronousFileChannel

In Java 7 the AsynchronousFileChannel was added to Java NIO. The AsynchronousFileChannel makes it possible to read data from, and write data to files asynchronously. This tutorial will explain how to u...
阅读(161) 评论(0)

RMI与RPC

分布式对象(Distributed Objects) 架构实例有CORBA/RMI/DCOM/.NET Remoting 远程过程调用(Remote Procedure Call) 架构实例有SOAP/XML-RPC/Flash AMF...
阅读(126) 评论(0)

java.io.RandomAccessFile

public class RandomAccessFile extends Object implements DataOutput, DataInput, CloseableInstances of this class support both reading and writing to a random access file. A random access file be...
阅读(150) 评论(0)

Reading and Writing using a Large Random Access File

I have a delimited file where each line is of a varying length and can have a varying amount of delimiters. I need to access a random line and replace it with a new line that may be shorter or longer i...
阅读(132) 评论(0)

Random Access Files

Random access files permit nonsequential, or random, access to a file’s contents. To access a file randomly, you open the file, seek a particular location, and read from or write to that file.This func...
阅读(215) 评论(0)

高性能I/O设计模式Reactor和Proactor

系统I/O可分为阻塞,非阻塞同步和非阻塞异步三类,非阻塞异步模式的扩展性和性能最好。 IO多路复用模式:Reactor和Proactor。 为Reactor和Proactor模式构建一个通用的,统一的对外接口并是一个完全可移植的开发框架选择方案:TProactor (ACE compatible Proactor) 。因为Linux对aio支持的不完整,所以ACE_Proactor框架在linu...
阅读(209) 评论(0)

Fast paging with MongoDB

Paging through your data is one of the most common operations with MongoDB. A typical scenario is the need to display your results in chunks in your UI. If you are batch processing your data it is also...
阅读(177) 评论(0)

Why NoSQL?

The Demands of Your Database are ChangingNoSQL technology was pioneered by leading internet companies — including Google, Facebook, Amazon, and LinkedIn — to overcome the limitations of 40-year-old rel...
阅读(280) 评论(0)

消息队列的使用场景是怎样的?

rebbitmq,activemq 跨系统的异步通信,所有需要异步交互的地方都可以使用消息队列。就像我们除了打电话(同步)以外,还需要发短信,发电子邮件(异步)的通讯方式。 多个应用之间的耦合,由于消息是平台无关和语言无关的,而且语义上也不再是函数调用,因此更适合作为多个应用之间的松耦合的接口。基于消息队列的耦合,不需要发送方和接收方同时在线。 在企业应用集成(EAI)中,文件传输,共...
阅读(1389) 评论(1)

ActiveMQ初体验

MQ(MessageQueue),消息队列,消息的接受和转发的容器,可用于消息推送。 ActiveMQ是Apache出品的一个开源的消息队列软件,运行在JVM下,支持多种语言,如JAVA,C++,C#。1、下载去官方网站下载:http://activemq.apache.org/ 我下载的是apache-activemq-5.8.0-bin 5.8版本,当然开源的也是支持下载source的,需要自...
阅读(174) 评论(0)

activemq的几种基本通信方式总结

简介activemq是JMS消息通信规范的一个实现。总的来说,消息规范里面定义最常见的几种消息通信模式主要有发布-订阅、点对点这两种。另外,通过结合这些模式的具体应用,我们在处理某些应用场景的时候也衍生出来了一种请求应答的模式。下面,我们针对这几种方式一一讨论一下。基础流程在讨论具体方式的时候,我们先看看使用activemq需要启动服务的主要过程。 按照JMS的规范,我们首先需要获得一个JMS c...
阅读(266) 评论(0)

ActiveMQ入门实例

1.下载ActiveMQ去官方网站下载:http://activemq.apache.org/2.运行ActiveMQ解压缩apache-activemq-5.5.1-bin.zip,然后双击apache-activemq-5.5.1\bin\activemq.bat运行ActiveMQ程序。启动ActiveMQ以后,登陆:http://localhost:8161/admin/,创建一个Queue...
阅读(141) 评论(0)
252条 共13页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:71473次
    • 积分:1120
    • 等级:
    • 排名:千里之外
    • 原创:0篇
    • 转载:251篇
    • 译文:1篇
    • 评论:3条
    文章分类
    文章存档
    最新评论