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 |