You can start it once and use it (that's the default way) over your
complete application lifecycle. And you have not to start the route
explicitly, but load them into the context.
Best regards - Claus
Am Freitag, den 03.06.2011, 08:47 +0200 schrieb ltomuno
:
java code:
CamelContext context
Hi
I'm sending a file over JMS using Oracle AQ.
InRoute
Route reading from the queue:
java code:
CamelContext context = new DefaultCamelContext();
... ...
// start the route and let it do its work
context.start();
Thread.sleep(2000);
// stop the CamelContext
context.stop();
I have to do it every time?
start sleep stop
Is there a more elegant
Hi,
You can do the same thing as you do in the CXF.
You just need to throw the WebApplicationException from the processor,
camel-cxfrs will take care of it, but if you set the repsonse message
back to the message body, camel-cxfrs will try to turn it into a
Response object and send it back as
hmmm, this worked for me...
http://camel.apache.org/schema/spring";>
Bharat Goyal wrote:
>
> Thanks that works.
>
> However, how do I pass the relative folder to
Thanks that works.
However, how do I pass the relative folder to generate the file in from my
property file?
e.g. camel doesnt allow "datafolder.inbound.path" to be inside the file
component string.
${header.CamelFi
consumer.receive() will only receive a single message per call...try
something like this
while (true)
{
// receive the message from the queue, wait at most 3 sec
Exchange exchange = consumer.receive(3000);
if (exchange == null)
{
// no more messages
you can access the "CamelFileNameProduced" header and set that as the body
after the file is written...something like this
.setBody(header(Exchange.FILE_NAME_PRODUCED))
Bharat Goyal wrote:
>
> Hi,
> We have a route that is configured to get XML content from a http
> endpoint, log it to a file
Hi,
We have a route that is configured to get XML content from a http endpoint, log
it to a file using the file component (as shown below). However, what we want
is to pass only the path of the file and not input stream to the next component
in the route. Is there a way to extract the file name
We use camel and activeMq JMS. In investigating the memory performance
of our services I noticed a pattern of object creation and JC and a very
stable basis when the service is under now load. Would camel consumers
polling the queues result in this behavior? A graph of a sample heap
demonstrating t
Hello all,
I am working on a full traceability solution on my camel routes, for that, I
am using a custom interceptor.
The problem is that the parent-child relation is not correctly set when
InterceptStrategy.wrapProcessorInInterceptors() is called.
I am working with a patched camel 2.2.0, to in
just use route scoped exception handling...see
http://camel.apache.org/exception-clause.html
-
Ben O'Day
IT Consultant -http://benoday.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Custom-error-handler-around-one-endpoint-tp4449301p4449367.html
Sent from the
Hi,
As best I can tell, there is just one error handler for the entire context.
Is there a way to create a custom error handler that can be applied
around a single endpoint?
~ Greg McFall
I agree with Hadrian!
You can use the same logic with camel-quartz to start your process. In
the same way you implement today.
After that you can use one of many implementations to connect in your
data source. I really like camel-mybatis but you can use one of those:
camel-jdbc
camel-sql
camel-jpa
Camel has a quartz component [1] that you can use in a very similar way (if I
understand correctly what you meant).
You obviously need a trigger to start processing, camel-quartz can provide
that. Are there any other possible triggers for your data quality validation
task?
I hope this helps,
H
some of my tables are not mapped as entities and this table I have to query
is not mapped I don't want to map it, I want camel to call my predicate if
the predicate returns true call some processor , and check the predicate
every 5 minutes ,
--
View this message in context:
http://camel.4
Hi all, I'll try to explain the best I can:
I have a route that looks like this:
from("nmr:endpoint1")
...
.to("nmr:endpoint2");
So the 'flow' of the exchange could be something like:
[Bundle1] > [BundleWithCamelRoute] > [Bundle2]
What I'm trying is to track the exchange statu
I suggest you take a look at the jpa component.
With that and a corresponding Entity object this can be achieved.
If you want to check for certain values to be set of the entity
you can define a named query on it.
Am 02.06.2011 19:03, schrieb fachhoch:
I want to check a table data in my databa
I want to check a table data in my database and if it meets some condtion
then start some processing , how to do this in camel , currently I have a
quartz job running every 5 minutes to check this table and if the data
meets my condition I do some processing , I want to do this in camel pleas
I don't want to set it for 2 milliseconds, I just want to check that it is
reflected in the code - meaning that setting it to 2 should throw Socket
exception or other exception and I also need to check that this exception is
handled by the code correctly.
But setting it to 2 doesn't produce any ex
Hi
I have created a ticket to track this
https://issues.apache.org/jira/browse/CAMEL-4039
On Fri, May 27, 2011 at 11:37 AM, Bruno Dusausoy wrote:
> Hi,
>
> As previously stated[1] I'm creating a RESTful webservice, defined by this :
>
> public class RestComputationService implements ComputationS
Hi,
I was unaware that you are using transactions, and yes, you are right that
transaction failure cannot be propagated back to the main route from the
over wiretap sub-route.
What I would recommend in this case is that you use a processor that does
something similar by creating a producerTemplat
Hmm,
The socket connectionTimeout value is set in milliseconds. Setting it to 2
implies you want your socket to timeout in 2 milliseconds. Are you sure
this is the value you want to set?
That said, it should still take it...
Cheers,
Ashwin...
-
Hi,
No, not yet :).
It is hard enough to keep our English documentation in line with the
continual & rapid progress and volume of community
participation/contribution. That said Camel Documentation rocks !!!
Cheers,
Ashwin...
-
-
Ash
Hi,
Your unit test is incorrectly defined.
You are using a request-reply model with a route that is defined to be
in-only.
Object requestBody = template.requestBody(startEndpointUri,
"toto")
Sine your route is in-only and sends a message to another queue
activemq:finish, your unit test
On 26/05/2011 13:13, James Strachan wrote:
On 26 May 2011 12:57, Jim Talbut wrote:
Yeah. How about /camel/{contextId}/routes/{routeId}
I picked /camel as the root URI for all contexts so that we can then
mix this web app with other web apps showing other things without
clashing
James
I've bee
Claus, Hadrian,
thank you very much guys.
Regards.
javier arias.
2011/6/1 Claus Ibsen
> On Wednesday, June 1, 2011, Claus Ibsen wrote:
> > I said the top of thst link i posted
> >
>
> Sorry if that sound sour. By typing on my iphone is not my strong skills
>
> > On Wednesday, June 1, 2011, Javi
Hi
Go read the Camel documentation, about using beans with Camel
http://camel.apache.org/bean-integration.html
2011/6/2 ltomuno :
>
>
>
>
>
>
>
> I wan't to know the foo class detail, extends what class or
> implements what interfacethank you
>
>
> At 2011-06-02 11:10:21,"Will
>Is your JBI endpoint a Binding Component that sends the exchange on a JBI
based workflow? Is your JBI flow up and running?
Yes, the JBI is working, but it returns JBI Fault which is translated into
FaultException for Camel.
I've change the Camel flow so that it uses doTry() instead of continue
Great thanks, I'll also be looking for that component.
Taariq
On Thu, Jun 2, 2011 at 9:06 AM, Jean-Baptiste Onofré wrote:
> Hi all,
>
> I wrote a Camel component based on iText for that. It also support POI. I
> raised a Jira for that, I will add the patch beginning of the next week.
>
> Regards
Hi all,
I wrote a Camel component based on iText for that. It also support POI.
I raised a Jira for that, I will add the patch beginning of the next week.
Regards
JB
On 06/01/2011 05:34 PM, Christian Schneider wrote:
The file component can read pdfs but it won´t interpret them. So you
would
31 matches
Mail list logo