上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页
摘要: Example: the PropertyPlaceholderConfigurer 属性配置文件内容如下所示: jdbc.driverClassName=org.hsqldb.jdbcDriverjdbc.url=jdbc:hsqldb:hsql://production:9002jdbc... 阅读全文
posted @ 2013-09-02 10:52 梦见舟 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 注入方式一:set注入 element --> public class ExampleBean { private AnotherBean beanOne; private YetAnotherBean beanTwo; private int i; public void se... 阅读全文
posted @ 2013-09-02 10:39 梦见舟 阅读(110) 评论(0) 推荐(0) 编辑
摘要: this information below just for study record of mine. 默认情况下:Spring 创建singleton bean 以便于错误能够被发现。 延迟加载:延迟加载可以使bean 在被需要的时候实例化 Bean Scope singleto... 阅读全文
posted @ 2013-09-02 09:29 梦见舟 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 使用JQuery操作cookie时 发生取的值不正确的问题: 结果发现cookie有四个不同的属性: 名称,内容,域,路径 $.cookie('the_cookie'); // 读取 cookie $.cookie('the_cookie', 'the_value'); // 存储 cooki... 阅读全文
posted @ 2013-08-26 12:03 梦见舟 阅读(173) 评论(0) 推荐(0) 编辑
摘要: this content below are come from the JSR154 by sun Just for record purpose. if this relate to some law problem ,please contact with me, my email i... 阅读全文
posted @ 2013-08-21 10:39 梦见舟 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 创建程序测试MQ 1,创建生产者 package com.robert;import java.util.Hashtable; import java.util.Map; import javax.jms.Connection; import javax.jms.ConnectionF... 阅读全文
posted @ 2013-08-15 11:41 梦见舟 阅读(141) 评论(0) 推荐(0) 编辑
摘要: mq服务启动以后 接着要做的事情就是 【发送】和【接受】消息。 首先有两种不同类型的Message:Topic,Queue 第一种Topic JMS规范定义了,Topic需要实现 发布和订阅两个功能,一个topic可以被0个或多个订阅者订阅。但是订阅者必须是激活的。 第二种Queue 一条消息只... 阅读全文
posted @ 2013-08-15 10:20 梦见舟 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 第一步: 从http://activemq.apache.org/ 下载相关文件。 apache-activemq-5.8.0-bin.zip 解压到指定目录下。 第二步: cmd 下切换到 mq安装目录\bin目录下 例如:D:\apache-activemq-5.8.0\bin ... 阅读全文
posted @ 2013-08-15 09:46 梦见舟 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 此例子来自apache cxf sample。 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE ... 阅读全文
posted @ 2013-07-22 18:13 梦见舟 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 第一步:定义webService接口 package com.robert.ws.service; import javax.jws.WebService; @WebService public interface SimpleWebService { String doRequest... 阅读全文
posted @ 2013-07-22 04:36 梦见舟 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页