设万维读者为首页 万维读者网 -- 全球华人的精神家园 广告服务 联系我们 关于万维
 
首  页 新  闻 视  频 博  客 论  坛 分类广告 购  物
搜索>> 发表日志 控制面板 个人相册 给我留言
帮助 退出
高岭的博客  
Architect,ESB, SOA, OSGi, WebServices, Java EE, Oracle...  
https://blog.creaders.net/u/2242/ > 复制 > 收藏本页
我的名片
Sun River
注册日期: 2009-02-25
访问总量: 6,293 次
点击查看我的个人资料
Calendar
我的公告栏
最新发布
· ServiceMix配置
友好链接
分类目录
【System Integration】
【Servlets】
【Interview FAQs】
【JavaScripts】
【Ajax】
【Portal】
【EJB 3.0】
【Java EE】
【Java SE】
【Struts 2.0】
【Oracle】
【Hibernate】
【Spring Framework】
【ESB企业服务总线】
· ServiceMix配置
存档目录
02/01/2009 - 02/28/2009
发表评论
作者:
用户名: 密码: 您还不是博客/论坛用户?现在就注册!
     
评论:
ServiceMix配置
   

This is simple doc how to develop notification serviceMix service:

1. download apache-servicemix-3.3

2. create endorsed folder

   copy jaxb-api.jar & jaxb-impl.jar to this folder

3. copy aspectjweaver-1.5.2.jar to lib folder

4. modify servicemix.bat

   set \"JAVA_OPTS= -DframeworkHome=D:\\WorkEnvironment\\staging\\clients\\framework %JAVA_OPTS%\"

5. Create a new project gaoling

  5.1

  @WebService(targetNamespace = http://com.hizero.servicemix.services/notif/ )

  public class Notification {

    .....

  }

 5.2

 xbean.xml

 <import resource=\"classpath:applicationContext-datasource.xml\"/>

 <import resource=\"classpath:applicationContext-trans_mgmt.xml\"/>

6  another project

 xbean.xml

<beans xmlns=\"http://www.springframework.org/schema/beans\"

       xmlns:cxfbc=\"http://servicemix.apache.org/cxfbc/1.0\"

       xmlns:notif=\"http://com.hizero.servicemix.services/notif/\"

       xmlns:xsi=\"http://http://www.w3.org/2001/XMLSchema-instance\"

       xsi:schemaLocation=\"http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd

       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd\">

  <cxfbc:consumer wsdl=\"classpath:Notification.wsdl\"

                      endpoint=\"NotificationPort\"

                      service=\"notif:NotificationService\"

                      interfaceName=\"notif:Notification\"

                      targetEndpoint=\"notif:NotificationPort\"

                      targetService=\"notif:NotificationService\"

                      targetInterface=\"notif:Notification\" />

</beans>

7. mvn process-classes generate wsdl & copy it to src/main/resources

8 use maven build whole project

 
关于本站 | 广告服务 | 联系我们 | 招聘信息 | 网站导航 | 隐私保护
Copyright (C) 1998-2024. CyberMedia Network /Creaders.NET. All Rights Reserved.