
OpenSource
文章平均质量分 70
liugang594
这个作者很懒,什么都没留下…
展开
-
在Tomcat中部署Archiva
在Tomcat中配置Archiva的步骤:1.在目录:${TOMCAT}/webapps/archiva/META-INF增加context.xml: <Context path="/archiva" docBase="${catalina.home}/archiva/apache-archiva-1.0.2.war"> <Resource ...原创 2011-09-23 11:46:17 · 208 阅读 · 0 评论 -
[CXF] Server与Client实现方式六:Local
【参考:http://cxf.apache.org/docs/local-transport.html 】除了remote的交互方式,cxf还提供了一种local的交互方式,它允许在同一个JVM内进行service的调用。 一、服务接口的定义和之前几篇文章一样,定义很简单:@WebServicepublic interface OrderProcess { publ...原创 2013-10-28 14:42:26 · 174 阅读 · 0 评论 -
[CXF] Server与Client实现方式五:HTTPS
【参考:http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html 】【参考:http://cxf.apache.org/docs/configuration.html 】前几节讲了http和jms的传输协议的实现,这节介绍如何使用https来实现通信。一、生成密钥要使用https通信,...原创 2013-10-25 17:28:26 · 830 阅读 · 0 评论 -
[CXF] Server与Client实现方式四:JMS
【参考:http://cxf.apache.org/docs/jms-transport.html 】【参考:http://cxf.apache.org/docs/using-the-jmsconfigfeature.html 】【参考:http://cxf.apache.org/scalable-cxf-applications-using-jms-transport.html 】...原创 2013-10-25 17:03:36 · 372 阅读 · 0 评论 -
[CXF] Server与Client实现方式三:Provider-Dispatch
【参考: http://cxf.apache.org/docs/jax-ws-dispatch-api.html 】【参考: http://cxf.apache.org/docs/provider-services.html 】除了第一节介绍的jax-ws的方式和第二节介绍的simple的方式,CXF也支持Provide-Dispatch的请求-服务的方式。 和前两节每个ope...原创 2013-10-25 14:29:25 · 302 阅读 · 0 评论 -
[CXF] Server与Client实现方式二:Simple
【参考:http://cxf.apache.org/docs/jax-ws-configuration.html】【参考:http://cxf.apache.org/docs/writing-a-service-with-spring.html】【参考:http://cxf.apache.org/docs/simple-frontend-configuration.html】在上节...原创 2013-10-25 14:03:21 · 224 阅读 · 0 评论 -
[CXF] Server与Client实现方式一:JAXWS
【参考:http://cxf.apache.org/docs/jax-ws-configuration.html】一、SEI的定义假设有以下SEI定义:@WebServicepublic interface OrderProcess { public String processOrder(Order order);} (实现端省略) 二、Server...原创 2013-10-25 11:45:32 · 264 阅读 · 0 评论 -
自定义Spring MVC中的数据绑定
默认情况下,spring mvc的数据映射的实现是自动查找请求中的key为参数名的parameter的值。比如有以下方法: @RequestMapping(value="/xml", method=RequestMethod.POST) public String xmlData(String name, Integer age){ System.out.println(na...原创 2015-02-01 18:27:50 · 301 阅读 · 0 评论 -
在HTTP容器中内嵌OSGI容器Equinox
上一篇中讲了怎么在Equinox中嵌入Http容器和添加Http服务。 这一篇讲另半部分:怎么在HTTP容器(如Tomcat)中嵌入Equinox。 一、入门Equinox工程里已经提供了一个专门用于连接Servlet容器和Equinox容器的war包,可以从以下位置下载:http://eclipse.org/equinox/server/downloads/bridge....原创 2011-12-29 15:33:43 · 209 阅读 · 0 评论 -
在OSGI容器Equinox中嵌入HttpServer
简单介绍一下如何在一个osgi的bundle中内嵌使用http服务一、基础首先看看在OSGI中怎么启动内嵌的jetty容器。看下图: 其实简单的只选中"org.eclipse.osgi"和"org.eclipse.equinox.http.jetty",然后点击"Add Required Bundles"即可。默认的Jetty监听的端口为80,可又通过指定运行参数 org....原创 2011-12-27 18:01:55 · 198 阅读 · 0 评论 -
Spring 参考资料
拦截器顺序参考: 【http://www.cnblogs.com/yjmyzz/p/how-to-custom-filter-provider-and-token-in-spring-security3.html】 Spring框架详细参考:【http://docs.spring.io/spring/docs/current/spring-framework-reference/htm...原创 2014-12-03 09:14:25 · 356 阅读 · 0 评论