Re: Error on using camel cxf "No binding factory… http://schemas.xmlsoap.org/soap/ registered (but works in eclipse)

2014-06-26 Thread dermoritz
Here it is: [INFO] com.sas:cep-adapter-java:jar:1.0-SNAPSHOT [INFO] +- com.sas:dfESP-component:jar:1.0-SNAPSHOT:compile [INFO] | \- dfx-esp-api:api:jar:2.2-post:compile [INFO] +- com.sas.o2:RTDM_general_client:jar:0.0.1-SNAPSHOT:compile [INFO] +- com.google.inject:guice:jar:3.0:compile [INFO] |

RE: Only same instance of SSLContextParameters is supported

2014-06-26 Thread damien
Thanks for the reply! After a lot of testing, I found the sslContextParameters has some issue with our Squid proxy. It doesn't work with the proxy: https4://*.*.edu.au/Integration/ImportPersons/{dynamicpart}?httpClient.cookiePolicy=ignoreCookies&proxyAuthHost=*.*.*.*&proxyAuthPort=3128&proxyAut

Re: Dynamic camel routing

2014-06-26 Thread sakchakravarthi
Can I get example or links please. I could able to get clear picture on camel routing policy. Please share me link where I can get good explanation and example for writing customized policy. -- View this message in context: http://camel.465427.n5.nabble.com/RoutePolicy-camel-routing-tp5752613p

Re: What's the point of the OUT message on an Exchange?

2014-06-26 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html If you have a copy of the Camel in Action book, see page 66 for more details as well. On Thu, Jun 26, 2014 at 10:44 PM, Matt Sicker wrote: > I don't understand what the point of using the out message is. It d

Re: New to Camel and also needing to come up to speed on Java again

2014-06-26 Thread Willem Jiang
What’s web service look like? You need to grab the WSDL, generate the SEI from WSDL by using CXF wsdl2java tool, and then setup the CxfEndpoint as document I showed you. If you are new to invoke the web service by using Java, you may need to google some example first. -- Willem Jiang Red Hat,

Re: processing data based on the metadata in the file using apache camel

2014-06-26 Thread Willem Jiang
camel-file component just treat the file content as input stream, you can write a customer bean to handle the content as you want if it doesn't effect how you grab the file.. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.it

Re: Error on using camel cxf "No binding factory… http://schemas.xmlsoap.org/soap/ registered (but works in eclipse)

2014-06-26 Thread Willem Jiang
Can you use “mvn dependency:tree” to dump the third party jar list? Just make sure the cxf-rt-bindings-soap-***.jar is in the list to fix the issue. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

Re: Http4 Set Header Content-Type not passing through to the HTTP Request

2014-06-26 Thread Willem Jiang
The content-type is part of request entity,  as there is no request entity body in the GET Http method, camel-http4 doesn’t put the Content-Type header into http header. Here a discussion[1] which is about it in stack overflow. [1]http://stackoverflow.com/questions/5661596/do-i-need-a-content-t

RE: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
The reason I want to start the route before the whole application context is ready is that some of the spring-loaded services in my application require a request/response message to be processed by another system in order to fully initialize. If the Camel routes haven't started yet, these messag

Re: What's the point of the OUT message on an Exchange?

2014-06-26 Thread Willem Jiang
As Camel wants to support the InOut(Request/Reply) and InOnly message exchange pattern at the same time. If the previous exchange has no out message, camel pipe line processor which is used to chain all the processors together uses the in message to feed the other processor, but if previous exc

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Willem Jiang
I just checked the code of CamelContextFactoryBean it just setup the camel route in the method of onApplicationEvent. From the comments, camel just want to make sure all the inject works are done before staring the camel context.  My question is why you do you want to start the camel route befor

Re: Camel-hbase : problem with qualifier "id"

2014-06-26 Thread Christian Müller
I can confirm this issue. I have raised a JIRA [1] and work on a fix. [1] https://issues.apache.org/jira/browse/CAMEL-7547 Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Me

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
Okay, tried the work-around we discussed and it *almost* worked... jvm 1| 17:05:10,877 INFO [/wdts.table][SpringCamelContext] (pool-6-thread-1) Apache Camel 2.13.1 (CamelContext: myCamel) is starting jvm 1| 17:05:10,879 INFO [/wdts.table][ManagedManagementStrategy] (pool-6-thread-1) JMX

What's the point of the OUT message on an Exchange?

2014-06-26 Thread Matt Sicker
I don't understand what the point of using the out message is. It doesn't copy headers. It doesn't signify the end of a route as far as I can tell. It's not used for a reply message. I don't think any of the official Camel components even use the out message. What good is it for? In my own project

Error on using camel cxf "No binding factory… http://schemas.xmlsoap.org/soap/ registered (but works in eclipse)

2014-06-26 Thread dermoritz
In my camel app i am creating cxf endpoints in java dsl: CxfEndpoint cxf = new CxfEndpoint(rtdmUrl, new CxfComponent(this.getContext())); cxf.setServiceClass(EventPortType.class); process.process(rtdmSetNameFactory.get(eventName)).to(cxf).process(handleRtdmAnswer); If try to run this route i get:

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Claus Ibsen
On Thu, Jun 26, 2014 at 9:55 PM, Jeff Bischoff wrote: > Thanks so much for clarifying that; now I understand why the startup is > happening when it does. > > Out of curiosity, what would happen if I called the start() method on the > CamelContext bean from one of my beans? Would that muck things u

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
Thanks so much for clarifying that; now I understand why the startup is happening when it does. Out of curiosity, what would happen if I called the start() method on the CamelContext bean from one of my beans? Would that muck things up? I'd be happy to log a ticket for startEager. Thanks, Jeff

Re: Passing Headers to a Route Invoked via Proxy

2014-06-26 Thread Claus Ibsen
Hi Maybe the Camel bean parameter binding works http://camel.apache.org/parameter-binding-annotations.html On Thu, Jun 26, 2014 at 9:11 PM, edhansen42 wrote: > I have a route (A) that invokes a bean. In the bean I am using the @Produce > annotation to proxy to an endpoint associated with route

Passing Headers to a Route Invoked via Proxy

2014-06-26 Thread edhansen42
I have a route (A) that invokes a bean. In the bean I am using the @Produce annotation to proxy to an endpoint associated with route B. When the endpoint for route B is invoked, camel creates a new exchange for it and sets the body to the BeanInvocation from the proxy call. But route B needs i

Re: Examples HowTo write from local WebSphere to remote MQ

2014-06-26 Thread Claus Ibsen
Hi Search the web and these forums, as people have talked about this in the past. I just found this by googling http://lowry-techie.blogspot.se/2010/11/camel-integration-with-websphere-mq.html And there are some links here too about IBM MQ with Camel http://camel.apache.org/articles On Thu, Jun

Re: Http4 Set Header Content-Type not passing through to the HTTP Request

2014-06-26 Thread sandeepreddip
Thanks for the reply,bit I'm a bit confused, I indeed set the headers on * Message message = exchange.getIn(); * *Attached is complete trace of the route. Camel_http4_GET_trace.txt * I appreciate if you could shed some mo

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Claus Ibsen
Hi I dont think you can do that, as we listen on ContextRefreshedEvent from spring before we start Camel. We introduce a shutdownEager in CAMEL-7156 for camel-spring. We could consider a startEager option as well, so we start CamelContext sooner. Feel free to log a JIRA ticket http://camel.apach

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
When I try this, I see the "myCamel" bean instantiated (it has been passed as a parameter to another bean) but it is not started at the time "foo" is instantiated. If I use a breakpoint at this spot and take a look in jconsole, I see that the Camel MBeans have not been registered yet. Later in the

Re: processing data based on the metadata in the file using apache camel

2014-06-26 Thread kraythe .
Sounds like a pretty specialized use case. You could always write your own component or a processor that handles the output of the file2 consumer (which will be a stream) . However when I hear of such specialized use cases I always wonder if the person is not going about it the wrong way. What is t

Re: Processor Issues after upgrade from 2.12.3 to 2.13.1

2014-06-26 Thread Claus Ibsen
Hi Try with System.out from your processor instead of the logger, to see if you can see that. Or any other way change it so you know its invoked or not. On Thu, Jun 26, 2014 at 8:04 PM, John Dubchak wrote: > Hi, > > I upgraded SMX 5.0.0 to 5.1.0 (which was Camel 2.12.3 to 2.13.1) and now my >

Processor Issues after upgrade from 2.12.3 to 2.13.1

2014-06-26 Thread John Dubchak
Hi, I upgraded SMX 5.0.0 to 5.1.0 (which was Camel 2.12.3 to 2.13.1) and now my simple route with a single processor has stopped working. // Processor public class MyProcessor extends ConfigurableBase implements Processor { public void process(Exchange exchange) throws Exception {

Re: Consuming messages from multiple AMQ queues and forward it to single AMQ queue concern

2014-06-26 Thread Darwish
Many Thanks Robert :) "easily" is relative word based on EIPs patterns as knowledge & CAMEL as tool ;) - Othman Darwish ProgressSoft Corp. -- View this message in context: http://camel.465427.n5.nabble.com/Consuming-messages-from-multiple-AMQ-queues-and-forward-it-to-single-AMQ-queue-conc

Re: New to Camel and also needing to come up to speed on Java again

2014-06-26 Thread Rick
Thanks for the replies guys - sorry it has taken me so long to come back to you on this but I amslowly making my way through this. I have made some headway in dealing with data that comes in as the XML file and that seems to work, basically I have unmarshalled the file into a processor so that I c

Re: Http4 Set Header Content-Type not passing through to the HTTP Request

2014-06-26 Thread kraythe .
You generally don't want to use the OUT part of the exchange except in very rare circumstances. I don't know why you felt the need to set the headers and information on the out part of the exchange but that is almost always an error. The rest of the route will continue processing the IN part of the

Re: How to secure camel proxy project

2014-06-26 Thread kraythe .
Remember Camel run as a war is just a servlet so any of the standard means for securing a servlet will also be applicable to the camel servlet. Most of these involve changes to the web.xml. When it comes to running it in Karaf or ServiceMix, again the configurations of those host platforms are wher

Re: Dynamic camel routing

2014-06-26 Thread kraythe .
There are some out of the box route policies with Camel but keep in mind that you can always implement your own. If you have a specific use case that requires special logic then implement your own route policy. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Maintainable Java (Kin

Re: Consuming messages from multiple AMQ queues and forward it to single AMQ queue concern

2014-06-26 Thread kraythe .
Careful with the word "easily" :) As long as you can establish some kind of order a resequenced can put things back in order even though they may be processed in parallel and that is an important distinction. If, on the other hand you truly need to process them in a specific order whereby each me

Re: Problem with sFTP PUT

2014-06-26 Thread deepak_a
Hi Claus, So can you pls clarify how my route should be - I don't have a '/' in from of the 'put' directory - so this should work right? or should I try: /put/DTS4.UP.C5T62.S60300 ? (I think I might have tried that already) put/DTS4.UP.C5T

Re: How to secure camel proxy project

2014-06-26 Thread Christian Müller
HTTPS, HTTP BASIC AUTH, WS-SECURITY, ... You has multiple possibilities. Best, Christian Am 26.06.2014 12:45 schrieb "Royamit" : > Hi all, > > I am new to camel and right now i am working on proxy creation using Apache > Camel. Now i want to secure this proxy service of mine. but i can't find > a

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Claus Ibsen
You set the others beans to have depends-on Camel. wrote: > I'm having a problem using the Camel Spring DSL. Starting the routes seems to > be the very last thing that is done during Spring initialization. > > How do I trigger Spring to fully initialize camel and all the camel routes > earlier

How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
I'm having a problem using the Camel Spring DSL. Starting the routes seems to be the very last thing that is done during Spring initialization. How do I trigger Spring to fully initialize camel and all the camel routes earlier in the Spring initialization process (i.e. before a particular other

RE: Http4 Set Header Content-Type not passing through to the HTTP Request

2014-06-26 Thread sandeepreddip
Hi, I'm facing the exact issue with an HTTP GET request. However it works fine with an HTTP POST. Camel version: 2.13.1 RESTFul services built with RESTEasy 2.3.6 Below are the logs for HTTP GET AND POST. *Enlightenment appreciated*. *HTTP POST ---FAILS -- Content-Type header is lost* The ser

Re: Missing properties on exception

2014-06-26 Thread anupamsen
Hi Can you share how did you solve this issue? I am facing the same issue. -- View this message in context: http://camel.465427.n5.nabble.com/Missing-properties-on-exception-tp4775029p5752857.html Sent from the Camel - Users mailing list archive at Nabble.com.

Not recoverable error following a recoverable error

2014-06-26 Thread Karsten Vileid
Hello (resending mail since my subscription to camel mailinglist had stopped), I am having a problem with error handling and I am not sure if it is a limitation or something I have misunderstood. I have deadLetterChannel that handle faults without any redeliveries. For some recoverable errors (su

Re: convertBody - To SFTP component

2014-06-26 Thread Claus Ibsen
Hi Yeah you need to use the message translate eip http://camel.apache.org/message-translator.html to covert the hashmap into a format you can send as a file. If you only need to grab one value from the map, you can just use simple to lookup the path key from the body ${body["Path"]} On Thu

I have to route file with the pattern lst_20140427.tar.gz if the lst_20140427.done file exit

2014-06-26 Thread skasish
I have to route file with the pattern *lst_20140427.tar.gz* if the *lst_20140427.done* file exit How to define a camel route with doneFileName -- View this message in context: http://camel.465427.n5.nabble.com/I-have-to-route-file-with-the-pattern-b-lst-20140427-tar-gz-b-if-the-b-lst-20140427-

Re: Consume Message at specific Point in Time

2014-06-26 Thread Minh Tran
If you are using ActiveMQ, there’s a scheduler you can use. http://activemq.apache.org/delay-and-schedule-message-delivery.html On 26 Jun 2014, at 8:59 pm, FloFri wrote: > Hello, > > I currently try to acomplish the following: > > I have a JMS-Queue with some messages. These messges all have

Problems producing with a consumer..

2014-06-26 Thread Bill Brigden
Hi all,   I've got an issue with producing inside (and during) the consumption of a message. Ie:   - A camel context that has: - A route that receives a message (sync) and sends to a bean function - Inside that function, I produce an outgoing message (sync) that is destined for another route pointi

Not recoverable error following a recoverable error

2014-06-26 Thread Karsten Vileid
Hello, I am having a problem with error handling and I am not sure if it is a limitation or something I have misunderstood. I have deadLetterChannel that handle faults without any redeliveries. For some recoverable errors (such as java.net.ConnectException) I have defined an onException clause, wh

Examples HowTo write from local WebSphere to remote MQ

2014-06-26 Thread Frankiboy
I have just installed difrent com.ibm.mq client jars on my local mashine, is there a site where i can get some examples HOWTO write som messages to a MQ from my local camel project, to my MQ on a remote AIX mashine. I new to MQ... I haved googled a littel, but i dident find anything. Is there an

Re: convertBody - To SFTP component

2014-06-26 Thread eswar
hi Claus - But I do not want to send the message body as is. For ex., I have a message body of type HashMap as {"Path", "C:/Temp/Test.txt"}. Now I need to send the file mentioned in the path using the sftp component. So I was thinking this HashMap should be converted into File so that sftp compon

Re: convertBody - To SFTP component

2014-06-26 Thread eswar
Thanks Rajesh - but as mentioned above I do not want to transfer the message body but rather need to read the body and determine the file to be transfered -- View this message in context: http://camel.465427.n5.nabble.com/convertBody-To-SFTP-component-tp5752815p5752847.html Sent from the Camel

Consume Message at specific Point in Time

2014-06-26 Thread FloFri
Hello, I currently try to acomplish the following: I have a JMS-Queue with some messages. These messges all have a header "processingTime" which is a timestamp somewhere in the future (different from message to message). Now I want my route to process the messages after this timestamp has passed

How to secure camel proxy project

2014-06-26 Thread Royamit
Hi all, I am new to camel and right now i am working on proxy creation using Apache Camel. Now i want to secure this proxy service of mine. but i can't find anything on it. Please help me on this. Looking forward to your solutions. Thanks in advance -- View this message in context: http://came

Re: camel-cxf with rpc/literal style wsdl?

2014-06-26 Thread Grzegorz Grzybek
Hello Aki Accorfing to http://camel.apache.org/cxf.html you can use CxfPayload class. I did this: // argument 1 of RPC call - marshall using JAXB to DOM DOMResult arg1 = new DOMResult(); m.marshal(new JAXBElement<>(new QName("", "arg1"), String.class, "value1"), arg1);