ent"
property name="connectionFactory" ref="myConnectionFactory"/
/bean
jee:jndi-lookup id="myConnectionFactory" jndi-name="java:env/ConnectionFactory"/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ty name="connectionFactory" ref="myConnectionFactory"/
/bean
jee:jndi-lookup id="myConnectionFactory" jndi-name="java:env/ConnectionFactory"/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Generates a response using an XSLT template
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
// We like blogs about Camel
boolean good = title.toLowerCase().contains("camel");
return good;
}
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
n
/dependency
Alternatively you can download the component jar directly from the Maven repository:
activemq-core-5.1.0.jar
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
version}/version
extensionstrue/extensions
/plugin
/plugins
/build
/project
See Also
Configuring Camel
Component
Endpoint
Getting Started
ServiceMix Camel module
Using Camel with ServiceMix
Powered by
Atlassian Confluence
(Ver
by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
he port that the JMX connector will use
connectorPath
/jmxrmi
The path that JMX connector will be registered under
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ts names will use
createConnector
true
If we should create a JMX connector (to allow remote management) for the MBeanServer
connectorPort
1099
The port that the JMX connector will use
connectorPath
/jmxrmi
The path that JMX connector will be registered under
are used to somehow 'declaring' endpoints in SMX. In camel it is enough to simply start a flow from a jbi endpoint and camel will create it automatically.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
omponent (e.g. Velocity) to enrich the content and add it to a pipeline
"direct:c" to ("velocity:org/apache/camel/scala/dsl/enricher.vm") to ("mock:c")
TODO
TODO: Create a Scala alternative and example for every EIP available on http://activemq.apache.org/camel/enterprise-integration-patterns.html
Message Channel
Message
Message Router
Message Translator
Message Endpoint
Point to Point Channel
Publish Subscribe Channel
Dead Letter Channel
Guaranteed Delivery
Message Bus
Correlation Identifier
Aggregator
Resequencer
Routing Slip
Content Filter
Normalizer
Messaging Mapper
Event Driven Consumer
Polling Consumer
Competing Consumers
Message Dispatcher
Selective Consumer
Durable Subscriber
Idempotent Consumer
Transactional Client
Messaging Gateway
Service Activator
Wire Tap
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
t.jms.JmsComponent"
property name="connectionFactory" ref="myConnectionFactory"/
/bean
jee:jndi-lookup id="myConnectionFactory" jndi-name="java:env/ConnectionFactory"/
See Also
Configuring Camel
Component
Endpoint
Getting Started
.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Tutorials
Camel JMX
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ts names will use
createConnector
true
If we should create a JMX connector (to allow remote management) for the MBeanServer
connectorPort
1099
The port that the JMX connector will use
connectorPath
/jmxrmi
The path that JMX connector will be registered under
e path that JMX connector will be registered under
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
();
main.enableDebugging();
main.setApplicationContextUri("org/apache/camel/spring/debug/applicationContext.xml");
main.start();
// now lets test we have a debugger available
debugger = main.getDebugger();
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Se
g Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
able route definitions from the Main instance via the getRouteDefinitions() method.
ListRouteType routes = main.getRouteDefinitions();
you can then navigate the route and see its inputs and outputs etc
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#
by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
bound in the Registry.
URI format
ref:someName
Where someName can be any string which is used to lookup the endpoint in the Registry.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe
the Camel message to Spring Integration endpoints or receive the message from Spring Integration endpoint in Camel routing context.
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527
;Received output text: " + output[0]);
// Get the response context form outMessage
MapString, Object responseContext = CastUtils.cast((Map)out.getHeader(Client.RESPONSE_CONTEXT));
assertNotNull(responseContext);
assertEquals("Get the wrong wsdl opertion name
ce that this is done by setting
// a special header property of the out exchange
exchange.getOut().setHeader(FileComponent.HEADER_FILE_NAME, "report.txt");
}
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
using java code logic, notice that this is done by setting
// a special header property of the out exchange
exchange.getOut().setHeader(FileComponent.HEADER_FILE_NAME, "report.txt");
}
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
of rows updated for update operations, returned as an Integer object.
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe
rrayList - was: " + out.getOut().getBody(), data);
assertEquals(2, data.size());
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
/www.google.com")
.to("mock:results");
}
};
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
a message
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
e/camel/component/stringtemplate/letter.tm").to("mock:result");
}
};
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
and returns an Exchange object.
From the returned Exchange you can test if its failed and get the caused exception. This is illustrated in the code sample:
TODO: Insert snippet
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug
org.apache.camel/groupId
artifactIdcamel-maven-plugin/artifactId
/plugin
/plugins
/build
All that is required is a new plugin definition in your Maven POM. As we have already placed our Camel config in the default location (camel-server.xml has been placed in META-INF/spring/) we do not need to tell the plugin where the route definitions are located. Simply run mvn camel:run.
TODO: Testing
TODO: Detail how to unit and integration test this example.
See Also
Spring Remoting with JMS Example on Amin Abbaspour's Weblog
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
mel/groupId
artifactIdcamel-artixds/artifactId
version1.3.5.0-fuse/version
/dependency
And ensure you are pointing at the maven repo
repository
idopen.iona.m2/id
nameIONA Open Source Community Release Repository/name
urlhttp://repo.open.iona.com/maven2/url
snapshots
enab
number for the latest greatest release (see Downloads for the latest version).
dependency
groupIdorg.apache.camel/groupId
artifactIdcamel-juel/artifactId
version1.3.0/version
/dependency
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep
number for the latest greatest release (see the download page for the latest versions).
dependency
groupIdorg.apache.camel/groupId
artifactIdcamel-juel/artifactId
version1.3.0/version
/dependency
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:
mel.Redelivered" that contains a boolean if its redelivered or if its the first time the message is processed.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
.info("Received output text: " + output[0]);
// Get the response context form outMessage
MapString, Object responseContext = CastUtils.cast((Map)out.getHeader(Client.RESPONSE_CONTEXT));
assertNotNull(responseContext);
assertEquals("Get the wrong wsdl opertion name", "{http://apache.org/hello_world_soap_http}greetMe", responseContext.get("javax.xml.ws.wsdl.operation").toString());
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ect array, the fist element of the array is the return value
Object[] output = (Object[])out.getBody();
LOG.info("Received output text: " + output[0]);
// Get the response context form outMessage
MapString, Object responseContext = CastUtils.cast((Map)out.getHeade
)
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ts names will use
createConnector
true
If we should create a JMX connector (to allow remote management) for the MBeanServer
connectorPort
1099
The port that the JMX connector will use
connectorPath
/jmxrmi
The path that JMX connector will be registered under
l particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
sing This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
he description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
xt
For further examples of this pattern in use you could look at the junit test case
Using This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you
arted, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
;activemq:my.queue").splitter(xPathBuilder).to("activemq:my.parts");
Using This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try
en please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 S
/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
end("direct:a", createLetter());
mock.assertIsSatisfied();
}
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
from("direct:a").to("velocity:org/apache/camel/com
require other dependencies; such as camel-jms requires a JMS provider. To see the exact dependencies of the other modules see the Maven reports
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
is here: https://projects.open.iona.com/projects/svn/iona/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe
://open.iona.com to be able to access subversion.
The full FUSE distro is here: https://projects.open.iona.com/projects/svn/iona/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep
to register with http://open.iona.com to be able to access subversion.
The full FUSE distro is here: https://projects.open.iona.com/projects/svn/iona/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
to be able to access subversion.
The full FUSE distro is here: https://projects.open.iona.com/projects/svn/iona/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ent
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
//open.iona.com to be able to access subversion.
The full FUSE distro is here: https://projects.open.iona.com/projects/svn/iona/camel/trunk/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build
to("stream:header");
}
};
}
private class MyOutputStream extends OutputStream {
public void write(int b) throws IOException {
char c = (char)b;
sb.append((char)b);
}
}
See Also
Configuring Camel
Component
Endpoint
Getting S
ut.getHeader(Client.RESPONSE_CONTEXT));
assertNotNull(responseContext);
assertEquals("Get the wrong wsdl opertion name", "{http://apache.org/hello_world_soap_http}greetMe", responseContext.get("javax.xml.ws.wsdl.operation").toString());
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
o allow remote management) for the MBeanServer
connectorPort
1099
The port that the JMX connector will use
connectorPath
/jmxrmi
The path that JMX connector will be registered under
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
erver
false
If true then it will use the plateform MBean server form the JVM
jmxDomainName
org.apache.camel
The jmx domain that all objects names will use
createConnector
true
If we should create a JMX connector (to allow remote management) for the MBeanServer
connectorPo
er
mbeanObjectDomainName
org.apache.camel.jmx.mbeanObjectDomainName
org.apache.camel
The JMX domain that all objects names will use
createConnector
org.apache.camel.jmx.createRmiConnect
false
If we should create a JMX connector (to allow remote management) for the MBeanServer
registryPort
org.apa
ceived output text: " + output[0]);
// Get the response context form outMessage
MapString, Object responseContext = CastUtils.cast((Map)out.getHeader(Client.RESPONSE_CONTEXT));
assertNotNull(responseContext);
assertEquals("Get the wrong wsdl opertion name", "{http://apache.org/hello_world_soap_http}greetMe", responseContext.get("javax.xml.ws.wsdl.operation").toString());
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
I is inherited from the template/ configuration. If you prefer you could specify that in the producer.send() method call
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
block");
Using This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this patt
mx.createRmiConnect
false
If we should create a JMX connector (to allow remote management) for the MBeanServer
registryPort
org.apache.camel.jmx.rmiConnector.registryPort
1099
The port that the JMX RMI registry will use
connectorPort
org.apache.camel.jmx.rmiConnector.connectorPort
-1 (dynamic)
The port that the JMX RMI server will use
serviceUrlPath
org.apache.camel.jmx.serviceUrlPath
/jmxrmi/camel
The path that JMX connector will be registered under
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
)
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
- ID-claus-acer/3690-1214458315718/2-1 - node4 To[mock:b] InOnly Properties:{CamelCauseException=null} Headers:{from=Claus} Body:This is Copenhagen calling
Enabling from Spring XML
TODO: Spring XML
See Also
See Debugger
Powered by
Atlassian Confluence
e list
Accessing the Route Definitions
You can easily access all of the available route definitions from the Main instance via the getRouteDefinitions() method.
ListRouteType routes = main.getRouteDefinitions();
you can then navigate the route and see its inputs and outputs etc
See Also
See Tracer
1:55,875 [main ] INFO TraceInterceptor - ID-claus-acer/3690-1214458315718/2-1 - node4 To[mock:b] InOnly Properties:{CamelCauseException=null} Headers:{from=Claus} Body:This is Copenhagen calling
Enabling from Spring XML
TODO: Spring XML
See Also
See Debugger
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
in the route and examine historic message exchanges
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
XML which defines the Tracer bean such as the one that is automatically included if you run the Main with -t above.
See Also
See Debugger
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
nectionFactory" jndi-name="java:env/ConnectionFactory"/
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
refer to the Camel Spring documentation.
Other Resources
IONA Technologies has a number of guides on using Camel at http://open.iona.com/documentation/fuse-mediation-router-documentation
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07
configurations on a wide range of platforms.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
production support you could contact one of the following companies
IONA Technologies offers training, mentoring, [consulting|http://open.iona.com/consulting) programs and 24 x 7 support.
OpenLogic provide support
Powered by
Atlassian Confluence
(Version
blog entry entitled The IONA FUSE Model and It's Benefits to the Community. You can also find additional information about FUSE Mediation Router and the Open.IONA community at "Why join our community".
Powered by
Atlassian Confluence
(Version: 2.2.9 Buil
specified using URIs. If you find the above a bit confusing, try reading about the Architecture or try the Examples
Using This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint
orld");
int count = jdbc.queryForInt("select count(*) from books");
assertEquals("Number of books", 3, count);
}
And lastly the rollback condition since the 2nd book is a Donkey book:
public void testTransactionRollback() throws Exception {
template.sendBody("direct:fail", "Hello World");
int count = jdbc.queryForInt("select count(*) from books");
assertEquals("Number of books", 1, count);
}
See Also
JMS
Using This Pattern
If you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
an
/constructor-arg
/bean
.
Our business logic is set to handle the incomming messages and fail the first two times. When its a success it responds with a Bye World message.
public static class MyProcessor implements Processor {
private int count;
public void process(Exchange exchange) throws E
esult from the script engine, you need to add a prefix " result = " before your _expression_.
We will take the result variable as the _expression_ result.
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Exchange exchange,
Throwable exception) {
// This is just an example that always forces the exception type configured
// with MyPolicyException to win.
return exceptionPolicices.get(MyPolicyException.class);
by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
ent.HEADER_FILE_NAME, "message.html").to("file:target/hello");
Poll the google homepage every 10 seconds and write the page to the file message.html
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feat
org.apache.camel.builder.script.ScriptBuilder.*;
...
... python("somePythonExpression") ...
For example you could use the python function to create an Predicate in a Message Filter or as an _expression_ for a Recipient List
Powered by
Atlassian Confluence
The output is an object array, the fist element of the array is the return value
Object[] output = (Object[])out.getBody();
LOG.info("Received output text: " + output[0]);
// Get the response context form outMessage
MapString, Object responseContext =
is automatically included if you run the Main with -t above.
See Also
See Debugger
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
MessageDriven(uri = "activemq:my.queue")
public void doSomething(@Path("/foo/bar/text()") String correlationID, @Body String body) {
// process the inbound message here
}
}
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
boolean good = title.toLowerCase().contains("camel");
return good;
}
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
t.
from("ftp://[EMAIL PROTECTED]/public/reports?password=tigerbinary=trueconsumer.delay=" + delay).
to("file://target/test-reports");
}
};
}
See Also
Configuring Camel
Component
Endpoint
Getting Started
Po
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
purpose to see if the secure communication works
In the sample we use the dummyTrustManager option:
from("seda:mailsToSend").to("imaps://ourmailsserver.com?username=camelmailpassword=secretdummyTrustManager=true");
See Also
Configuring Camel
Component
Endpoint
Getting
Configuring Camel
Component
Endpoint
Getting Started
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
"target/report-super.txt");
assertEquals("File should exists", true, file.exists());
}
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
from("direct:report").to(
1 - 100 of 592 matches
Mail list logo