CXF WS client request missing envelope tag

2014-07-30 Thread Joery
HI, I created one CXF producer as WS client using cxf:cxfEndpoint . As default it is POJO format so that I instantiate one java object from WSDL client stub type class of request . I can see request message is created with xml format but somehow it did not include any soap envelope . Can a

Re: one context or multiple contexts?

2014-07-30 Thread Matt Sicker
The way we do this at my work (using OSGi) is that each bundle gets its own CamelContext. We're using Blueprint, but even if we were to use Declarative Services or similar, I'd still implement it as a ServiceFactory (or the managed version if I wanted to include configurable parameters) so that eac

Re: one context or multiple contexts?

2014-07-30 Thread Bilgin Ibryam
Inline On 30 July 2014 11:27, sarveswaran_m wrote: > We have a bunch of independent routes. > We run camel in stand-alone mode. > Ideally, we can run all our routes in a single camel context. > In such a scenario, a single greedy route consuming excess memory can bring > down the entire JVM. > T

Re: CXFRS Component - setting providers for version 2.10.4

2014-07-30 Thread segev
I tried with no success... The schema element type for providers is xsd:anyType What is the correct syntax? -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Component

MyBatis 2.12.3 + Transactions

2014-07-30 Thread Scott Gentry
I'm following the setup guide located at: http://camel.apache.org/mybatis.html When I start service mix and then start my app I receive the following stack trace: org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor

Re: Camel-Restlet 2.13.1 Consumer Questions

2014-07-30 Thread Claus Ibsen
Hi Yeah it sounds like a bug about the 404 vs 405. Feel free to log a JIRA ticket http://camel.apache.org/support On Wed, Jul 30, 2014 at 7:36 PM, sandp wrote: > *Restlet Questions:* > > As I understand, RestletOperationException is thrown only when produced to > an endpoint with restlet. I'm tr

Camel-Restlet 2.13.1 Consumer Questions

2014-07-30 Thread sandp
*Restlet Questions:* As I understand, RestletOperationException is thrown only when produced to an endpoint with restlet. I'm trying to consume from a endpoint through restlet component, and facing the issues below: 1. First issue : Posted to the users.

Re: Cached temp files not deleted when StreamCaching is enabled

2014-07-30 Thread Claus Ibsen
Hi Have you tried with a newer 2.12.x release or even a 2.13.x ? If you have a test environment then give that a test to see if its been fixed. Also can you try from the ftp but route to something else than hdfs2, such as just a "log" or something. Just to figure out if camel-hdfs2 causes this.

Automatic Camel route triggering with Java DSL

2014-07-30 Thread mikes300
I have a use-case of a message-driven bean intercepting a JMS message, then triggering a Camel route inside another class. I currently have it sending the message to the createRoute method, which then uses a producertemplate to start the context, place the message on the first endpoint queue, then

Re: CXFRS Component - setting providers for version 2.10.4

2014-07-30 Thread Sergey Beryozkin
Hi, as far as I recall a cxfrs consumer schema has had a 'providers' element all the time... Cheers, Sergey On 30/07/14 15:40, segev wrote: We are using Camel 2.10.4 (constrains due to our existing run-time) Is there a way to set the jaxrs:providers on the CXFRS Component for this version? We

Re: how to get .Choice().When to continue ?

2014-07-30 Thread sandp
You have to added your logic to the matched when clause to proceed with the matched route. If none match use //your route -- View this message in context: http://camel.465427.n5.nabble.com/how-to-get-Choice-When-to-continue-tp5754682p5754693.html Sent from the Camel - Users mailing list archiv

Re: Invoking Camel restlet producer giving an exception

2014-07-30 Thread sandp
Add the option* restletMethod=POST* to the URL you are posting to. -- View this message in context: http://camel.465427.n5.nabble.com/Invoking-Camel-restlet-producer-giving-an-exception-tp5754603p5754687.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re:

2014-07-30 Thread rickaroni
The situation is as I outlined in the example. If you're using a component (like salesforce REST which uses the header and body in some interactions) to get intermediate results as part of a longer route, that component may need to control the header and body of the request+response. I don't see

Re:

2014-07-30 Thread rickaroni
Yes, that concept is similar to what I've seen done in 2+ places with custom scopes. e.g. If you rely heavily on queue transports, you set the request Id for the scope to be the correllation Id (or Message Id or UUID if you have neither), and the "route" scope ends when the output message goes to

how to get .Choice().When to continue ?

2014-07-30 Thread Frankiboy
The 3 lines in Bold newer get Executed, how to get .Choice().When to continue ? Route: from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() .onException(Exception.class).process(new LogError()).end() .multicast() .bean(AddIpBean.class) .to("direct:channel1",

Re: Same messages to 2 endpoints ?

2014-07-30 Thread Frankiboy
Thanks , that was the way to do it from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() .onException(Exception.class).process(new LogError()).end() .multicast() .to("direct:channel1", "direct:channel2"); from("direct:channel1") .setHeader("BD", constant("

Re: Camel-jdbc : can't get useHeadersAsParameters working properly

2014-07-30 Thread A577127
I'm using the latest version (2.13.2). I solved my problem. I replaced this : By this : The application_id (String) is correctly sent to MySQL. I need to check for the certificate (which is byte[]), but I guess it's all good. -- View this message in context: http://camel.465427.n5.nabble.co

CXFRS Component - setting providers for version 2.10.4

2014-07-30 Thread segev
We are using Camel 2.10.4 (constrains due to our existing run-time) Is there a way to set the jaxrs:providers on the CXFRS Component for this version? We want to secure the component with HTTP Basic Authentication by specifying the following filter as a provider using the following:

Re: How to restart the route if no response is returned from the web service call

2014-07-30 Thread Jaishankar
Hi Claus, If I use Producer Template we cannot handle *SOAPfault *or *SocketTimeOut *Exceptions? Is there any alternative solution for the problem? ProducerTemplate producerTemplate = exchange.getContext().createProducerTemplate(); Exchange exchangenew = producerTemplate.send("cxf:bean:Transactio

Re: Same messages to 2 endpoints ?

2014-07-30 Thread Michael Leuthold
I think you'll need to put a mutlicast() before calling the endpoints as suggested - otherwise the direct Endpoints will be called in the order, passing the Out from the first as the In to the other. See http://camel.apache.org/multicast.html for further reference. On Wed, Jul 30, 2014 at 12:53

Re: Handle SOAP fault message

2014-07-30 Thread Jaishankar
Sorry Williem, I don't know whether I'm right or wrong but I need to some how handle fault message in the producer template, is there any possibility that we can do it? or I need a solution to the given problem do { invokeTransactionBegin(); invokeEmployeeModify(); invokeTransactionCommit(); } wh

Same messages to 2 endpoints ?

2014-07-30 Thread Frankiboy
This is my routes: from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() .onException(Exception.class).process(new LogError()).end() .to("direct:channel1", "direct:channel2"); from("direct:channel1") .setHeader("BD", constant("YES"))

RE: one context or multiple contexts?

2014-07-30 Thread Elvio Caruana (ecaruana)
This is very subjective, but to me "greedy route" sets alarm bells ringing. Can't you put some checks in place? Throttling, delayer, load-balancer EIPs? Having it in a separate process mitigates the problem but is definitely not a solution. You've just shifted the problem. Elvio -Original

one context or multiple contexts?

2014-07-30 Thread sarveswaran_m
We have a bunch of independent routes. We run camel in stand-alone mode. Ideally, we can run all our routes in a single camel context. In such a scenario, a single greedy route consuming excess memory can bring down the entire JVM. There by, bringing all the routes down. Is there any way this can b

Re: Why this route times out ?

2014-07-30 Thread Frankiboy
Works i get my String messages to MQ, with inOnly, but throwing an exception before starting my last route "direct:channel2" .. Caused by: org.apache.cxf.binding.soap.SoapFault: Exception occurred during execution on the exchange: Exchange[Message: Frank was here from LogMq] from("cxf:b

Re: Camel-jdbc : can't get useHeadersAsParameters working properly

2014-07-30 Thread Arnaud Deprez
Hi, Can you tell us which camel version do you use and show us your route please ? 2014-07-30 10:52 GMT+02:00 A577127 : > Hi, > > I'm trying to send a mysql request thanks to camel-jdbc. However, one of my > fields is a byteArray, so I would like to use named parameters to bind some > value to

Cached temp files not deleted when StreamCaching is enabled

2014-07-30 Thread Chirag Dewan
Hi Camel Riders, I have a route like : from("ftp:someip").process("someprocessor").streamCaching().to("hdfs2:someip"); Now I can see that there are a lot of temp files being created in the root directory for caching which are not deleted even after a 1000's of files are picked from FTP server.

Camel-jdbc : can't get useHeadersAsParameters working properly

2014-07-30 Thread A577127
Hi, I'm trying to send a mysql request thanks to camel-jdbc. However, one of my fields is a byteArray, so I would like to use named parameters to bind some value to a header (which can be a byteArray). According to the camel-jdbc documentation , I should set

Re: Why this route times out ?

2014-07-30 Thread Claus Ibsen
You are doing request/reply over JMS (eg InOut). If you just want to send a message, then use InOnly. Depends how you send from your ben. But if you use producer template, then use the send for InOnly, and request for InOut. On Wed, Jul 30, 2014 at 10:30 AM, Frankiboy wrote: > This line returns

Why this route times out ?

2014-07-30 Thread Frankiboy
This line returns a String . .bean(LogMq.class, "logStart") I want to create a String that goes in the MQ, i want to do that in a bean, the string is create from headers an other information. Can anyone give me a Hint, what way i schould go from("cxf:bean:hubws?dataFormat=MESSAGE").s

OSGI, Camel, new ResourceXmlApplicationContext, But ...

2014-07-30 Thread lixunhuanmarry
to create ResourceXmlApplicationContext, because I directly generate a camel-context.xml as a byteaaray. get the error as below: org.springframework.beans.factory.BeanDefinitionStoreException :Unrecognized xbean namespace mapping: http://camel.apache.org/schema/spring. I has drilled down the code

RE: Load Testing Camel Routes

2014-07-30 Thread Elvio Caruana (ecaruana)
Hi Matt, I've replaced JMeter with Gatling [1], which has a nice DSL to work with and in my opinion much faster to write tests when compared to JMeter. Having said that, the apache ab tool (cli) [2] is useful for the initial checks. If you have routes that work concurrently, Camel's JMX statist