-
-
Save cmoulliard/7037709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.fusesource.workshop.cdi; | |
import org.apache.camel.CamelContext; | |
import org.apache.camel.builder.RouteBuilder; | |
import org.apache.camel.cdi.ContextName; | |
import org.fusesource.poc.routes.WebServiceToPojoUsingQueue; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
public class WebServiceRouting { | |
@Inject @ContextName("cxf") | |
private CamelContext ctx; | |
@Inject | |
private WebServiceToPojoUsingQueue cxfRoute; | |
@PostConstruct | |
private void loadAndStart() throws Exception { | |
System.out.print(">> Context loaded"); | |
ctx.addRoutes(cxfRoute); | |
ctx.start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment