It depends on if you are on an OSGi container or not.
If you are, you could initialise your JmsComponents on a single bundle and
export them as an OSGi Service. Then import them into the route bundles
with an ID that matches the prefix you want to use for the endpoints.
If you're not on OSGi, tak
So you want multiple routes to process the same files? If so, have one
route that then broadcasts the files to multiple endpoints (splitter).
Or do you want the route to be processing multiple files at once. If so,
use the .threads(x) method in your DSL.
If neither of those, then I don't understa
May be you should compare the feature differences between Camel 2.4 and
Camel 2.9, try to find an analogy on what benefits and value addition would
migrating to Camel 2.9 would bring for your project and whether this value
addition is financially substantial.
Regards,
Jothi
On Mon, Sep 24, 2012 a
Hi,
Sorry for slow and poor understanding.
Is it possible to provide a more direct example. ;)
I read some post from
http://camel.465427.n5.nabble.com/Set-exchange-property-to-a-Map-td3349171.html
[This bean take in a File object and
return a Result obje
Strangely enough, the following method seems to be working -
template.sendBodyAndHeader(originalConsumer, ExchangePattern.InOnly ,
exchange.getIn().getBody(String.class), USERNAME_TOKEN, username);
But the problem is that I have multiple tokens that I need to set in the
header :(
--
View this m
All the above comments are absolutely right.
But Denis has made a good point. If you need to justify the upgrade with
factors other than performance, security, etc., the speech will vary
depending on if you intend to actively continue developing on top of Camel,
or if the application is solely in
Related to #2 in Christian's list are bugs and issues in some of the third
party dependencies. If you need fixes in things like CXF or ActiveMQ or
similar, you may need to move to the latest Camel releases to be able to use
those fixes.
As a concrete example, if you are using camel-cxf with C
1) You have to pay to get support for older version or you have to do it by
your own. Both cases has costs...
2) If you check our issue tracker [1] you will see we fixed 720 issues
which are considered as bug starting with Camel 2.5.0 to 2.10.1 (the latest
version).
2293 issues in total, by the wa
Could you try:
String username = exchange.getIn().getHeader(USERNAME_TOKEN, String.class);
String password = exchange.getIn().getHeader(PASSWORD_TOKEN, String.class);
Best,
Christian
On Mon, Sep 24, 2012 at 4:40 PM, anupamsen wrote:
> Hi,
>
> I have a route somewhat like below -
>
>
>uri=
I think Claus means the Camel code is "as safe as it could be". If the
source is not closed properly, that it's an issue in the JDK.
It's more likely an issue in the Smooks code. Did you already checked the
code?
Best,
Christian
On Mon, Sep 24, 2012 at 4:54 PM, OrackBahama wrote:
> Hi Claus,
>
As a java-developer I think it is very important to migrate when new versions
are released.
Currently we are running camel 2.4.2.
I think that we should migrate to 2.9 or 2.10, but I find it hard to define
a business-case for this.
So "sell" that migration is neccesary.
How should I support it that
Hi
In your hashmap, the session id should be the key. And the chosen
processor should be the value.
eg the type should be
Map map = new ...
On Mon, Sep 24, 2012 at 4:40 PM, balkishore wrote:
> Hi claus,
>
> Thanks a lot for replying.
>
> I implemented the idea directed by you(I really apprec
Hi claus,
Thanks a lot for replying.
I implemented the idea directed by you(I really appreciate that )
But due to some reason my requests are not being forwarded, camel is
continuously retrying.
Here is my code for custom load balancer:
public class MyCustomLoadBalancer extends SimpleLoadBalanc
Hi,
sorry, maybe the situation wasn't clear enough. I have a simple jetty http
endpoint, which accepts requests and simply forwards it to nmr endpoint.
And then, there is a cxfEndpoint (configuration in first post), listening to
nmr:fatal:endpoint and simple camel route:
fatalProcessor just t
Hi,
I have a route somewhat like below -
the periodicallyPolledInputHandler is a Processor that has the following
definition for the process function -
public void process(Exchange exchange) {
/**
* Try getting it from the exchange header
*/
Map headers = new HashMap();
Hi Claus,
I'm not quite sure if I understand you right - you suspect Smooks for
eventually not closing the InputStream or Reader internally used by
StreamSource ?
But that would be a systematic error or leak that happens to *all* processed
files, right ?
On the other hand I'm getting the rename ex
Your load balancer should be stateful, so create a map as a variable
at the class level.
Then the map can be shared between the methods.
public class ... {
// stateful map to keep track of session id -> processors
private final Map map = new HashMap();
// methods here
}
On Mon, Sep 24, 2012 at
Hi claus,
I tried implementing your logic and it is as follow:
public class MyCustomLoadBalancer extends SimpleLoadBalancerSupport
{
public void process(Exchange exchange) throws Exception {
Processor target = chooseProcessor(exchange);
XPathBuilder sessionID =
XPathBuilder.xpath("subst
On Mon, Sep 24, 2012 at 1:11 PM, balkishore wrote:
> Hi claus,
> Thanks a ton for replying.
>
> 1) try to get the session id from the soap header (would not be there
> on the initial call) : How should I tell camel to skip the initial call and
> do not search for session id in the first request?
>
Hi claus,
Thanks a ton for replying.
1) try to get the session id from the soap header (would not be there
on the initial call) : How should I tell camel to skip the initial call and
do not search for session id in the first request?
--
View this message in context:
http://camel.465427.n5.nabb
On Mon, Sep 24, 2012 at 11:59 AM, balkishore
wrote:
> Hi,
> I want to perform a sticky based load balancing based on the SOAP session ID
> in the response.
> As camel's loadbalance.sticky() just check for the expression in the
> request, I have to implement my own custom load balancer.
>
> I gave
Hi Robert,
Have you checked your Dead Letter Queue (DLQ) in ActiveMQ? Your lost messages
may have ended up there!
Regards,
Arnoud
> -Original Message-
> From: Robert Dare [mailto:robert.d...@gmail.com]
> Sent: Friday, 21 September, 2012 15:25
> To: users@camel.apache.org
> Subject: Mes
Hi,
I want to perform a sticky based load balancing based on the SOAP session ID
in the response.
As camel's loadbalance.sticky() just check for the expression in the
request, I have to implement my own custom load balancer.
I gave a look at camel in action book and the information provided in the
On Mon, Sep 24, 2012 at 10:57 AM, zuff wrote:
>
>
> [This bean return a Result object that
> I would like to store]
You can store that as a header or property on the exchange, and call
the bean using a method call expression.
There is also a
>
>
[This bean return a Result object that
I would like to store]
${body}
[Need to retrieve the Result object here and pass it into
the messageSender]
On Mon, Sep 24, 2012 at 10:46 AM, zuff wrote:
> Hi Claus,
>
>Thanks. That resolved my problem. I didn't even try such a simple
> changes, as I thought I had to introduce the camel FactoryBean into my POJO.
>
>
>I have another issue:
> Even though I found some similar post regarding storing
Hi Claus,
Thanks. That resolved my problem. I didn't even try such a simple
changes, as I thought I had to introduce the camel FactoryBean into my POJO.
I have another issue:
Even though I found some similar post regarding storing of variable for
later usage, but most of them are in java
On Wed, Sep 19, 2012 at 6:04 PM, cgsk wrote:
> Hi there,
>
> Is there a way to add custom header to Soap message as below. I am using
> Camel-SpringWS.
>
>
>
>
>
>
>
> where CustomerObject being a java object generated using cxf-codegen-plugin
>
I am not sure its possible. I
On Mon, Sep 24, 2012 at 3:43 AM, zuff wrote:
> Hi All,
>
>I managed to get the route to work. However, I did this by annotating
> @Produce(uri="direct:resultProcessor") on the resultProcessor instance
> variable in the controller class. Is it possible to decouple camel from the
> code, and jus
29 matches
Mail list logo