Re: Simple expression not evaluated in Spring DSL setProperty

2015-04-15 Thread rsteppac2
Claus, thanks for clarifying. Ralf -- View this message in context: http://camel.465427.n5.nabble.com/Simple-expression-not-evaluated-in-Spring-DSL-setProperty-tp5765820p5765847.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SOAP headers not relayed for a SOAP 1.2 service when using CXF component

2015-04-15 Thread _redwings
Thanks for reply. The particular header in this example is a security/saml-token. But I've also tried adding headers according to the example here, and neither are passed to the endpoint: http://camel.apache.org/cxf.html Again, all headers are passed successfully to a similar soap 1.1 endpoint. I

Re: Simple expression not evaluated in Spring DSL setProperty

2015-04-15 Thread Claus Ibsen
You cannot use dynamic values in the headerName / propertyName. On Wed, Apr 15, 2015 at 11:34 AM, rsteppac2 wrote: > Hello all, > > is this supposed to work? > > propertyName="$simple{type:my.domain.StringConstants.EXCHANGE_PROP_TX_FAILED}"> > ${type:java.lang.Boolean.TRUE} > > > String

Re: Splitter file name automatic generation

2015-04-15 Thread pushkin1984
Thanks for the useful info. I was trying to create a route that dynamically generates filename based on attributes in xml and this post helped. Below is the route that worked for me: /Envelope/Header/text() This reads request coming to a REST webservice endpoint, parses value in Header element

Re: Bindy running within a WAR

2015-04-15 Thread RaviP
I tried deploying the war in ... wildfly-camel-patch option ...I'm getting LinkageError exception I'm using ContextLoaderListener to load the camel context. org.springframework spring-web 4.1.5.RELEASE

The Camel Kafka component crashes with a NoClassDefFoundError exception.

2015-04-15 Thread ccampo
The Camel Kafka component crashes with a NoClassDefFoundError exception. If you define a Camel route which uses the Camel Kafka component, it will crash when running with a NoClassDefFoundError. I've tracked this down to the project that uses camel-kafka 2.15.1 also requires an explicit dependency

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-15 Thread Willem.Jiang
I think you may need to find another way to pull the sub directory instead of pulling root directory directly. -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-2-15-1-return-ftp-error-code-421-tp5765272p5765843.html Sent from the Camel - Users mailing list archive at

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-15 Thread Willem.Jiang
The first connection is used to check if the ftp server is still alive before starting to pull the directory. If the RemoteFileConsumer cannot connect to the server, it just return the pulling process and wait for another pulling. -- View this message in context: http://camel.465427.n5.nabble.c

Re: Handling splitting and error handling

2015-04-15 Thread Willem Jiang
handled(true) just tell camel to keep on processing the message as the error is recovered. So I think you still need use handled(false) in your onException. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) T

RE: Bi-directional comms on TCP connection

2015-04-15 Thread Willem Jiang
First the Netty or Mina Consumer works in clientMode just connect the address of the device as a client when the route is started, then it can keep receiving the event from the device. If the consumer doesn’t work in clientMode, it just start a server which listen to address and wait for the cl

Re: Getting list of contexts or getting context by name

2015-04-15 Thread Willem Jiang
I just assume the context means Camel Context, am I right? If you create the Camel Context you need to manage it yourself. I don’t think it is possible to look up the other Camel Context from the route which only knows about the CamelContext holds it. There are some components can only be used to

Re: SOAP headers not relayed for a SOAP 1.2 service when using CXF component

2015-04-15 Thread Willem Jiang
How did you specify the SOAP 1.2 binding in your camel-cxf endpoint? What kind of soap header were lost? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 15,

RE: Bi-directional comms on TCP connection

2015-04-15 Thread Quoc Le
Hi Willem, I look at the code and your unit test NettyConsumerClientModeTest but still don't quite follow why clientMode can help with the case that Carl described. How can the consumer-server connects to the "client-device" in the first place? Can you explain the magic there? Thanks, -Quoc

Re: Spring Boot component is missing CamelSpringBootApplicationController

2015-04-15 Thread Henryk Konsek
Hi, Just add spring-boot-starter-web to your project. It will block the main thread. Or camel-boot-starter-remote-shell. I didn't backported CAMEL-8532 because it is as easy to block the main thread. I personally always add spring-boot-starter-web

JPA-Endpoint in onException is not committed

2015-04-15 Thread Frank Ertl
Hi folks, I have the following RouteBuilder: onException(Throwable.class) .handled(true) .bean(orderStateChanger, "changeOrderStateToWaiting") .to("jpa:Order"); from("jms:order_queue") .routeId("Order_Route") .transacted() .setHeader(ORDER_

Re: Camel-CXF will generate invalid XML in some cases

2015-04-15 Thread Willem Jiang
Hi Stephan, How did you turn the payload body into String? If you use the CxfPayload.getBody() you should get the a list of element which namespaces are set rightly. The PayLoadDataFormatFeature[1] just setup the interceptors for CXF to avoid processing the message part. I guess that is the mis

Re: Virtual Topic isn't working

2015-04-15 Thread Paul Gale
>Do I also need to change the Camel side to publish to a queue instead of a topic? No you do not. Seems perhaps that you're confused. The fact that you're using a virtual topic, rather than a durable topic subscription, doesn't change the fact that messages should still be published to a topic. A

Camel-CXF will generate invalid XML in some cases

2015-04-15 Thread Siano, Stephan
Hi, I am currently trying to debug an issue that is actually driving me crazy. I am calling a web service from a camel cxf endpoint in payload mode that returns data that uses a namespace in an attribute name that is defined on the SOAP envelope of the response. If I convert the CxfPayload into

Getting list of contexts or getting context by name

2015-04-15 Thread Gustav Sinder
Hi, I'm working on a solution where I dynamically setup/remove routes based on external configuration. So far so good, it works good, a manager route handles this just good. A thought would be to place the dynamic routes in another context. I can create new contexts from within the Java without

SOAP headers not relayed for a SOAP 1.2 service when using CXF component

2015-04-15 Thread _redwings
Hi! I'm using Camel 2.15.0 and the CXF component (CXF 3.0.4) to call a SOAP 1.2 web service in PAYLOAD mode. The call in itself works fine, however necessary out of band soap headers (i.e. not defined in the contract) are not relayed to the service endpoint for some reason. In the log I can see

Simple expression not evaluated in Spring DSL setProperty

2015-04-15 Thread rsteppac2
Hello all, is this supposed to work? ${type:java.lang.Boolean.TRUE} StringConstants.EXCHANGE_PROP_TX_FAILED := "exchange_prop_tx_failed" The property name is not evaluated to the string "exchange_prop_tx_failed". Instead the expression is used verbatim as the property name. The prope

Re: Handling splitting and error handling

2015-04-15 Thread blommish
So well, this can be handled by using transacted() after picking up the message from direct:inbound, making it look like: from("direct:inbound") .transacted() .multicast().parallelProcessing().to("direct:a", "direct:b"); But there's another issue then. If I have onException(Exception.class

Re: Bi-directional comms on TCP connection

2015-04-15 Thread Willem Jiang
We implement CAMEL-1077[1] in camel-2.15.x recently, so the ESB can talk to the device as a client to receive the events. But now the miss part is how can we share the channel between netty consumer and the netty producer.  [1]https://issues.apache.org/jira/browse/CAMEL-1077 -- Willem Jiang