Java Code Examples for org.apache.camel.impl.DefaultCamelContext#disableJMX()
The following examples show how to use
org.apache.camel.impl.DefaultCamelContext#disableJMX() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ODataSerializerTest.java From syndesis with Apache License 2.0 | 5 votes |
@Test public void testSchemaAlignmentToResult() throws Exception { context = new DefaultCamelContext(); context.disableJMX(); context.start(); try { String serviceURI = defaultTestServer.servicePlainUri(); String resourcePath = defaultTestServer.resourcePath(); String keyPredicate = "1"; // Fetch the actual json as will be returned by the camel context String jsonResult = fetchReferenceEntity( serviceURI + FORWARD_SLASH + resourcePath + OPEN_BRACKET + keyPredicate + CLOSE_BRACKET); JsonNode jsonResultNode = OBJECT_MAPPER.readTree(jsonResult); // Fetch the json schema as created by metadata retrieval String schema = getMetadataSchema(serviceURI, resourcePath, keyPredicate); JsonNode schemaNode = OBJECT_MAPPER.readTree(schema); // Validate the result against the schema validateResultAgainstSchema(jsonResultNode, schemaNode); } finally { if (context != null) { context.stop(); context = null; } } }
Example 2
Source File: TimerIntegrationTest.java From syndesis with Apache License 2.0 | 5 votes |
RouteBuilder createRouteBuilder() { IntegrationRouteBuilder irb = new IntegrationRouteBuilder("", Resources.loadServices(IntegrationStepHandler.class)) { @Override protected Integration loadIntegration() { return createTimerIntegration(action); } }; final DefaultCamelContext leanContext = new DefaultCamelContext(); leanContext.disableJMX(); irb.setContext(leanContext); return irb; }
Example 3
Source File: CamelMailetContainerModule.java From james-project with Apache License 2.0 | 5 votes |
@Singleton @Provides public DefaultCamelContext provideCamelContext() { DefaultCamelContext camelContext = new DefaultCamelContext(); camelContext.disableJMX(); camelContext.setRegistry(new SimpleRegistry()); return camelContext; }
Example 4
Source File: ODataMetaDataTest.java From syndesis with Apache License 2.0 | 4 votes |
@Before public void setup() throws Exception { context = new DefaultCamelContext(); context.disableJMX(); context.start(); }
Example 5
Source File: ODataMetaDataRetrievalTest.java From syndesis with Apache License 2.0 | 4 votes |
@Before public void setup() throws Exception { context = new DefaultCamelContext(); context.disableJMX(); context.start(); }
Example 6
Source File: ODataVerifierTest.java From syndesis with Apache License 2.0 | 4 votes |
@Before public void setup() throws Exception { context = new DefaultCamelContext(); context.disableJMX(); context.start(); }