diff --git a/camel/.classpath b/camel/.classpath index 35bca5e..01edbc4 100644 --- a/camel/.classpath +++ b/camel/.classpath @@ -12,12 +12,12 @@ - + - + diff --git a/camel/.settings/org.eclipse.jdt.core.prefs b/camel/.settings/org.eclipse.jdt.core.prefs index 8626026..d59e09c 100644 --- a/camel/.settings/org.eclipse.jdt.core.prefs +++ b/camel/.settings/org.eclipse.jdt.core.prefs @@ -1,5 +1,5 @@ eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/camel/pom.xml b/camel/pom.xml index 2b7f5ef..9117353 100644 --- a/camel/pom.xml +++ b/camel/pom.xml @@ -5,8 +5,7 @@ com.integration camel 0.0.1-SNAPSHOT - jar - + bundle camel http://maven.apache.org @@ -14,9 +13,160 @@ UTF-8 UTF-8 1.8 + 2.16.5 + 3.1.9 + 3.1.4.RELEASE + 5.14.5 + UTF-8 + OSGi - + + org.apache.camel + camel-spring + ${camel.version} + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-web + ${spring.version} + + + org.apache.camel + camel-core + ${camel.version} + + + org.apache.camel + camel-core + ${camel.version} + + + org.apache.camel + camel-cxf + ${camel.version} + + + org.apache.cxf + cxf-rt-transports-http-jetty + ${cxf.version} + + + org.apache.camel + camel-stream + ${camel.version} + + + org.apache.camel + camel-jdbc + ${camel.version} + + + org.apache.camel + camel-http + ${camel.version} + + + org.apache.camel + camel-jms + ${camel.version} + + + log4j + log4j + 1.2.16 + + + org.slf4j + slf4j-log4j12 + 1.6.1 + + + com.thoughtworks.xstream + xstream + 1.3.1 + + + org.apache.activemq + activemq-camel + ${activemq.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + org.apache.camel + camel-servlet + ${camel.version} + + + org.apache.camel + camel-jackson + ${camel.version} + + + org.apache.camel + camel-blueprint + ${camel.version} + + + org.apache.camel + camel-test-blueprint + 2.20.1 + test + + + com.integration + camel.module + 0.0.1-SNAPSHOT + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.1 + + ${java.version} + ${java.version} + + + + + org.apache.camel + camel-maven-plugin + + true + + + + org.apache.felix + maven-bundle-plugin + 2.2.0 + true + + + *;oracle.jdbc;javax.naming.spi;javax.naming;javax.security.auth;javax.net;javax.net.ssl;javax.management;javax.security.auth.callback;org.omg.CORBA;javax.security.auth.login;org.springframework.aop;org.springframework.aop.framework;org.aopalliance.aop + + false + + + + + org.apache.maven.plugins + maven-resources-plugin + 2.6 + + + diff --git a/camel/src/main/java/com/integration/camel/services/SimpleServiceOrderService.java b/camel/src/main/java/com/integration/camel/services/SimpleServiceOrderService.java new file mode 100644 index 0000000..946f503 --- /dev/null +++ b/camel/src/main/java/com/integration/camel/services/SimpleServiceOrderService.java @@ -0,0 +1,31 @@ +package com.integration.camel.services; + +import java.util.List; + +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.Response; + +import com.integration.camel.module.to.SimpleServiceOrder; + +@Path("/serviceorder") +public interface SimpleServiceOrderService { + + @GET + @Path("/so/{label}/") + @Produces("application/json") + public SimpleServiceOrder getServiceOrderByLabel(@PathParam("label") String label); + + @GET + @Path("/so/") + @Produces("application/json") + public List getServiceOrderList(); + + @POST + @Path("/so/") + public Response createNewServiceOrder(SimpleServiceOrder serviceOrder); + +} diff --git a/camel/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/camel/src/main/resources/OSGI-INF/blueprint/blueprint.xml new file mode 100644 index 0000000..ae1b70f --- /dev/null +++ b/camel/src/main/resources/OSGI-INF/blueprint/blueprint.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + direct-vm:${header.operationName} + + + + +