Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created October 18, 2013 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmoulliard/7039918 to your computer and use it in GitHub Desktop.
Save cmoulliard/7039918 to your computer and use it in GitHub Desktop.
import org.apache.camel.component.cdi.CdiBeanRegistry;
import org.apache.camel.component.cdi.CdiInjector;
import org.apache.camel.impl.CompositeRegistry;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.JndiRegistry;
import org.apache.camel.impl.SimpleRegistry;
import org.apache.camel.spi.EventNotifier;
import org.apache.camel.spi.PackageScanClassResolver;
import org.apache.camel.spi.Registry;
import org.apache.log4j.Logger;
import org.switchyard.ServiceDomain;
import org.switchyard.common.camel.event.CamelEventBridge;
import org.switchyard.common.cdi.CDIUtil;
/**
* Extension of default camel context. Supports access to mutable registry and
* provides integration with SwitchYard eventing model.
*/
public class SwitchYardCamelContext extends DefaultCamelContext {
/**
* Context property name used to store camel context as service domain property.
*/
public static final String CAMEL_CONTEXT_PROPERTY = "CamelContextProperty";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment