Let's assume you have some basic knowledge of osgi ,and want to deploy your Spring powered batch job into JBoss Fuse.
Step 1 : connecting to the right maven repository
com.springsource.repository.bundles.release EBR Spring Release Repository http:// repository.springsource.com/maven/bundles/release com.springsource.repository.bundles.external EBR External Release Repository http:// repository.springsource.com/maven/bundles/external
Step 2 : update pom.xml to have an ogsi complaint build.
com.opensymphony.quartz com.springsource.org.quartz 1.6.2 org.apache.felix maven-bundle-plugin 2.3.6 true ${project.artifactId} com.cn.junjun.test.jboss.fuse org.springframework.scheduling.quartz, org.quartz com.springsource.org.quartz
Step 3: spring configuration : META-INF/spring/beans.xml
Step 4: install spring quartz osgi bundle to JBoss Fuse
install mvn:com.opensymphony.quartz/com.springsource.org.quartz/1.6.2
Step 5 : deploy your application to JBoss Fuse
install mvn:com.cn.junjun.test.jboss.fuse/spring-batch-quartz/1.0.0-SNAPSHOT
By now your batch job should be able to run in JBoss Fuse already.
Environment :
JDK : 1.7
JBoss Fuse : 6.1.0
Spring Framework : 3.2.8 RELEASE
Quartz : 1.6.2
No comments:
Post a Comment