Hi all
can I remove a route from the context dynamically when its finished?
I have a set of dynamic generated routes which I want to cleanup after they are
run through
(each route runs only once).
Regards Michael
--
Michael Szalay
Senior Software Engineer
basis06 AG, Birkenweg 61, CH-3013 Be
On Tue, Mar 6, 2012 at 9:07 AM, Michael Szalay
wrote:
> Hi all
>
> can I remove a route from the context dynamically when its finished?
> I have a set of dynamic generated routes which I want to cleanup after they
> are run through
> (each route runs only once).
>
Yes see this FAQ
http://camel.a
On Mon, Mar 5, 2012 at 11:09 PM, ychawla wrote:
> Hello All,
> The Camel Properties component is very cool, however there are a few
> enhancements which would make it even better.
>
> First off the 'Cache' property is very nice. If Cache is set to false, then
> you can change your properties file
Hi
No it doesnt support a map so you can have a keyed based lookup.
It could possible be a good additon, to allow you to specify the key
name enclosed by # tokens, such as
So you can do something a like:
insert into foo (title, amount) values (#title#, #amount#)
Fell free to create a JIRA ticket
Thanks, writing my own route policy worked perfect for me.
Regards Michael
--
Michael Szalay
Senior Software Engineer
basis06 AG, Birkenweg 61, CH-3013 Bern - Fon +41 31 311 32 22
http://www.basis06.ch - source of smart business
- Ursprüngliche Mail -
Von: "Claus Ibsen"
An: users@camel
The Apache Camel project [1] is a powerful open source integration framework
based on known Enterprise Integration Patterns [2].
The Camel PMC made available a new patch release: Apache Camel 2.9.1.
This release includes 109 bug fixes and comes about eight weeks after the
release of camel-2.9.0
ychawla wrote
>
> Currently, you can use the URI format of:
>
> cxf://someAddress[?options]
>
> However, then you have have to manually configure CXF features using the
> CXF bus. However, if you could have a URI interface like below, you can
> configure your CXF features and interceptors on t
ychawla wrote
>
> Currently, you can use the URI format of:
>
> cxf://someAddress[?options]
>
> However, then you have have to manually configure CXF features using the
> CXF bus. However, if you could have a URI interface like below, you can
> configure your CXF features and interceptors on t
ychawla wrote
>
> Currently, you can use the URI format of:
>
> cxf://someAddress[?options]
>
> However, then you have have to manually configure CXF features using the
> CXF bus. However, if you could have a URI interface like below, you can
> configure your CXF features and interceptors on t
ychawla wrote
>
> Currently, you can use the URI format of:
>
> cxf://someAddress[?options]
>
> However, then you have have to manually configure CXF features using the
> CXF bus. However, if you could have a URI interface like below, you can
> configure your CXF features and interceptors on t
ychawla wrote
>
> Currently, you can use the URI format of:
>
> cxf://someAddress[?options]
>
> However, then you have have to manually configure CXF features using the
> CXF bus. However, if you could have a URI interface like below, you can
> configure your CXF features and interceptors on t
I wanted to add, I'm using Spring DSL routes.
Also after some more thought, I'm thinking of two things to try:
1) come up with a way to create the SQL component parameter definition list
on the fly based upon the order of the headers.
2) Create a converter for my POJO bean from Bean to List an
Hi
There is also the dynamic router EIP
http://camel.apache.org/dynamic-router
On Tue, Mar 6, 2012 at 2:14 AM, johnson0233 wrote:
> Thanks Guys, now i am getting the idea of dynamic routing, and my new
> question here is, if i have a central routing manager which can route the
> message based
Hi
You should use a servlet this is how web apps is supposed to be
deployed and have your apps lifecycle handled by the container.
On Mon, Mar 5, 2012 at 4:00 PM, ShlomiJ wrote:
> Tomcat
>
> A servlet, which is set to be initialized on startup using Tomcat's
> 1 in web.xml, initiates a singleto
Absolutely.
The camel-example-servlet-tomcat shows how to setup camel in a war and
how to start it using the spring application context loader listener.
This is the supported way
of running camel in a servlet container.
Christian
Am 06.03.2012 11:55, schrieb Claus Ibsen:
Hi
You should use
Its not Camel. There is a JIRA ticket in AMQ about this.
On Tue, Mar 6, 2012 at 2:26 PM, Christian Müller
wrote:
> We have this issue by running Apache Camel 2.6.0. I verified that this issue
> still exists with the brand new 2.9.1 version.
> We use Java 1.6.0_29 and are able to reproduce it on
Hi
The new version creates a npe in validator component:
while loading eg.
from DefaultCamelContext.getEndpoint
full trace:
org.apache.camel.FailedToCreateRouteException: Failed to create route
dalet-nnp-in-Route at: >>> Transacted[] <<< in route:
Route[[From[ref:daletFolderEP]] -> [OnExcepti
On Tue, Mar 6, 2012 at 2:43 PM, Claus Ibsen wrote:
> Its not Camel. There is a JIRA ticket in AMQ about this.
>
Crap you gotta be some sort of imbecile to use the ASF JIRA. Have
been trying for 20 min to find the good damn JIRA ticket about this.
It was first reported at Camel and then moved to
Hi
Can you log a JIRA ticket.
Its likely that the resource cannot be loaded from the classpath.
Put in details what runtime you use, as loading from classpath can be
tricky on some JEE servers.
On Tue, Mar 6, 2012 at 3:01 PM, Preben.Asmussen wrote:
> Hi
>
> The new version creates a npe in va
Would it be useful to put a "timeout" on a route, such that it's
automatically shut down and GCed if messages don't come through it for
X amount of time? Thus making dynamic routes more load-driven?
Or would this defeat the purpose of GCing dynamic routes by adding a
timer thread?
Don
On Tue, M
hi claus
created https://issues.apache.org/jira/browse/CAMEL-5063
will do some further investigation tomorrow.
cheers
preben
--
View this message in context:
http://camel.465427.n5.nabble.com/npe-in-camel-2-9-1-validator-tp5540894p5541199.html
Sent from the Camel - Users mailing list archive a
Ok, thanks for the info Claus. Let's see how good my search skills are...
;-)
Best,
Christian
On Tue, Mar 6, 2012 at 3:05 PM, Claus Ibsen wrote:
> On Tue, Mar 6, 2012 at 2:43 PM, Claus Ibsen wrote:
> > Its not Camel. There is a JIRA ticket in AMQ about this.
> >
>
> Crap you gotta be some sort
We have a concrete problem related to the SMTP component of Camel.
In one of our systems we need to distribute certain data of some size to
customers via mail, our customers mail connections very often have strong
restrictions on mail size, at the same time we don't have control over their
mail
The attached unit test (
http://camel.465427.n5.nabble.com/file/n5541356/ExceptionHandlingTest.java
ExceptionHandlingTest.java ) fails, but removing the log in the onException
block will make the test pass. The same behaviour can be seen for almost any
statement inside the block (like setBody, setH
Hi
I did reproduce your NPE with exactly the same Stacktrace.
I assume you make use of xs:import inside BroadcastMonitor.xsd, so make sure
you do *correctly* specify the filesystem path to the imported xsd using the
schemaLocation attribute. As an example take a look at [1] and see how
"health.xs
Hi,
I have a simple route that picks up a message in a jms queue, does something
in a processor and finally puts it in another queue :
I want the route to occur in a transaction and i wonder whether i have to
leverage a global transaction (JTA) or not.
Is JTA necessary in suc
If both the queues come off the same jms connection factory you can
use a resource-local (JMS) transaction.
See JmsTransactionManager in spring.
2012/3/6 kafe :
> Hi,
>
> I have a simple route that picks up a message in a jms queue, does something
> in a processor and finally puts it in another qu
Hi,
I've a question regarding camel-cxf in combination with interceptors
configured on the CXF-bus. It seems that the behaviour has changed from
CXF-version 2.4.4 to 2.4.6 but I'm not sure if it's a camel problem.
I've modified a unit-test that shows the problem. I expected an interceptor
that is
When I am trying to send multiple messages, I am getting the below error
message.
Exhausted after delivery attempt: 1 caught:
java.lang.IllegalArgumentException: Cannot add a 2nd consumer to the same
endpoint.
Also, please see the attached files for the routes. If I comment out the
line
"template
Hi Babak
The xsd has no imports - just plain and simple. It recites in an other maven
module with shared schemas that is on the classpath, and available for the
unittest. There is no problem under camel 2.9.0
/preben
--
View this message in context:
http://camel.465427.n5.nabble.com/npe-in-came
Hi
take a look at example [1] describing the behaviour your're observing:
// since we have no to then the exchange will continue to be routed to the
normal error handler
As you make use of the log DSL you do already route / consume the exchange
inside the onException
clause by itself so that the
Dears,
I'm willing to use activemq , I have the following questions:
1- which database I should use for high performance and more than 25
request daily from tcp channel to activemq.
2- what is default configuration?
If I use jdbc is it slower?i'm thinking to use oracle !! is it with good
per
So could you please provide a simple unit-test and attach on the JIRA ticket
so that the behaviour can reproduced and fixed?
Babak
--
View this message in context:
http://camel.465427.n5.nabble.com/npe-in-camel-2-9-1-validator-tp5540894p5541879.html
Sent from the Camel - Users mailing list archi
Hi Andi,
I think you always saw at the endpoint only the interceptors that are
configured at the endpoint. But you saw both interceptors when the
interceptor chain is built. Are you not seeing both interceptors when
the interceptor chain is invoked?
If you have this problem, can you tell us which
Hi,
The body of the email will be whatever you have as the current body of the
Camel exchange. You can explicitly set the body as well:
This is my email body
To control when the email is sent, you can split up your route:
Then you can use quartz to set up a timer to poll your folde
Hi, I have a requirement where I am sending an email when there is a error in
our billing system.
I have the route like this.
subject*=${subject}&*contentType*=text/plain&folderName=INBOX&filter=#errorBillingResponseEmailing"/>
I want to set a body of the email and also when
Could someone point me to an example or provide some guidance on what I
should do if I want to validate the cert returned from the server when I
make the https connection.
I have keystore and a truststore, but I am not sure how I tie them to the
https connection.
Thanks in advance.
http:/
Hmm, just thinking out loud, but can you split the data before it becomes
(part of) an email? Then at least you can remove the dependency on the
mail/MIME APIs.
Doug
P.S. Are you in Centenial? Many years ago I worked in the Maint. Docs dept.
at Jepp,
On Tue, Mar 6, 2012 at 8:43 AM, Knut Aksnes-N
Hi,
Are you trying to set the 'to' field in your email. You can either set that
on the smtp URI or in a header. For example:
recipi...@domain.com
The body of your email is whatever is on your message body.
If you want to set it as part of your route, try using a bean:
public String createEm
On your client, you can add a HTTP conduit:
Hi,
Can you please also past the camel context in question... AT the moment we
have insufficient data to diagnose the issue.
Thanks,
Ashwin...
-
-
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Sof
Hi,
My sense is that your generated JAXB stub code has some annotations that are
not being properly recognized by JAXB. Can you check which version of JAXB
you are using and ensure that it aligns with the jar being employed in
Glassfish...
Cheers,
Ashwin...
-
--
Hi,
Using a relational store is definitely slower than KahaDB. KahaDB is a store
that employs indexing & has a high speed journal to deal with efficient
access to stored messages. The relational layer is more expensive due to the
cost of SQL lookups & persistence...
However your requirement (2500
Hi,
Your route expects to send back a response, however you are using
template.sendBody() that does not expect to receive anything (one-way send).
If you expect to receive a response from your bean, you should use
template.requestBody() that sends a request and expects a response.
Cheers,
Ashwi
Here is the camel context file
http://camel.465427.n5.nabble.com/file/n5543061/ehf-ipf-context.xml
ehf-ipf-context.xml
jaxb-api = 2.1
jaxb-impl = 2.1.13
Let me know if you need any further details. Thank you for your prompt
response on this.
Trivedi
--
View this message in context:
http://ca
Hi Ashwin,
I am getting the same error after I changed to template.requestBody(). I am
unable to figure it out. Could you help me?
Exhausted after delivery attempt: 1 caught:
java.lang.IllegalArgumentException: Cannot add a 2nd consumer to the same
endpoint. Endpoint Endpoint[direct://level2] on
On Tue, Mar 6, 2012 at 4:12 PM, Donald Whytock wrote:
> Would it be useful to put a "timeout" on a route, such that it's
> automatically shut down and GCed if messages don't come through it for
> X amount of time? Thus making dynamic routes more load-driven?
>
> Or would this defeat the purpose o
Dear Ashwin ,
The XML message size is less than 2000 bytes , we have already four channels to
send messages in parallel to mina-tcp then to activemq channel.
Can you help with default configurations?
from the below http://activemq.apache.org/kahadb.html , In messages for sure
and asynch.
can
48 matches
Mail list logo