上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: Java Rmi 1.接口必须继承java.rmi.Remote接口2.方法必须抛出java.rmi.RemoteException异常Spring Rmi1.可以不实现java.rmi.Remote接口 2.方法可以不抛出异常 问题:在Spring 内部是怎么实现的?在Spring中 是通过org.springframework.remoting.rmi.RmiServiceExporte 在服务端导出一个服务 RmiServiceExporter定义public class RmiServiceExporter extends RmiBasedExporter implements Ini 阅读全文
posted @ 2012-03-29 17:25 ITA之路 阅读(254) 评论(0) 推荐(0)
摘要: 一: 服务端 暴露服务package com.xx.service; /** * 定义远程服务接口 * 1.可以不继承java.rmi.Remote接口 * 2.方法可以不抛出java.rmi.RemoteException异常 * */ public interface ISayHelloService { public String doSayHello(String name); }package com.xx.service.impl; import com.xx.service.ISayHelloService; /** * 远程接口实现 */ publ... 阅读全文
posted @ 2012-03-29 14:36 ITA之路 阅读(149) 评论(0) 推荐(0)
摘要: 一: 服务端 暴露服务import java.rmi.Remote; import java.rmi.RemoteException; /** * 1.定义远程接口,必须继承Remote接口, * 2.远程调用的方法必须抛出RemoteException异常 */ public interface ISayHello extends Remote { /** * @param name * @return * @throws RemoteException 远程调用方法必须抛出RemoteException */ public String doSayHel... 阅读全文
posted @ 2012-03-25 22:57 ITA之路 阅读(186) 评论(0) 推荐(0)
摘要: 环境:1.windows XPsp22.mongodb-win32-2.0.4 mongodb下载地址(http://www.mongodb.org/downloads)安装:解压mongodb下载的安装包 * 我这里是在 D:\mongodb 打开dos命令行 切换到D:\mongodb\mongodb-win32-i386-2.0.4\bin目录 以windows服务形式安装这样比较省事 mongod.exe --dbpath D:/mongodb/db --logpath D:\mongodb\logs.log --logappend --serviceName MongoDB --i. 阅读全文
posted @ 2012-03-22 21:24 ITA之路 阅读(107) 评论(0) 推荐(0)
摘要: spring中 有一大堆Aware结尾接口, 例如BeanFactoryAware, ApplicationContextAware, ServletContextAware等在程序中 我们自定义的bean实现了 Aware相关接口 spring 通过回调 就可以获得一些资源 比如说 我们的bean实现BeanFactoryAware spring会在bean实例化(getBean)阶段 回调该setBeanFactory方法 注入BeanFactory实例(也就是this)spring BeanFactoryAware 接口定义public interface BeanFactoryAwar 阅读全文
posted @ 2012-03-21 15:52 ITA之路 阅读(224) 评论(0) 推荐(0)
摘要: 自己的类 实现org.springframework.beans.factory.BeanFactoryAware 接口 BeanFactoryAware 接口中只有一个方法 setBeanFactory(BeanFactory beanFactory)import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; public cla. 阅读全文
posted @ 2012-03-21 14:38 ITA之路 阅读(293) 评论(0) 推荐(0)
摘要: import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; /** * 手动从Spring WebApplicationContext 容器中获得bean */ public class BeanUtils implements ApplicationContextAware { private static Appl... 阅读全文
posted @ 2011-09-29 10:03 ITA之路 阅读(375) 评论(0) 推荐(0)
摘要: -Xms256M -Xmx756M -XX:PermSize=128M-Xms 初始堆大小-Xmx 最大堆大小-XX:PermSize 持久代起始值 阅读全文
posted @ 2011-01-27 21:06 ITA之路 阅读(163) 评论(0) 推荐(0)
摘要: js文件中:if (dwr == null) var dwr = {};if (dwr.engine == null) dwr.engine = {};if (DWREngine == null) var DWREngine = dwr.engine;if (ManagerController == null) var ManagerController = {};ManagerController._path = _contextPath + '/dwr';ManagerController.invoke = function(bean, method, vararg_par 阅读全文
posted @ 2010-08-12 15:40 ITA之路 阅读(146) 评论(0) 推荐(0)
摘要: JaveEye:http://www.javaeye.comInfoq中文:http://www.infoq.com/cnUML:http://www.uml.org.cnJDon:http://www.jdon.com开源项目:http://www.open-open.comITPUB企业信息化建设论坛:http://www.itpub.net/index.php?gid=71开源中国社区:http://www.oschina.net/设计模式:http://www.riabook.cn/doc/designpattern/http://www.java1995.cn/ 阅读全文
posted @ 2010-08-10 12:39 ITA之路 阅读(115) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页