Proper way to rollback database calls and send to error queue

2015-06-11 Thread blom
Hi, One could think having an inner transaction would be easy. My StoreDataBean makes several database calls and all needs to be inside one transaction. If one of they fail they should all be rollbacked and sent to the errorQueue. onException(Exception.class).handled(true).to(errorQueue);

Re: Fuse elasticsearch error

2015-06-11 Thread Reji Mathews
Whats the version of camel you are using? Have you added the dependency in the POM.xml file. On Thu, Jun 11, 2015 at 9:11 AM, Vanshul.Chawla wrote: > Hello, > > I am trying to do a simple POC on elastic search using Fuse. I have > resolved errors for names.txt and snowball and my blueprint gets

RE: Fuse elasticsearch error

2015-06-11 Thread Vanshul . Chawla
Yes dependency is added. Actually without dependency it will not even install the bundle. There we 2 other fixes which were required ie names.txt and changing elasticsearch version in a features file which I did. Issue is its not as is supported in Fuse 6.1 so that might be an issue. In camel it

Re: Fuse elasticsearch error

2015-06-11 Thread Reji Mathews
HI Vanshul Whats the camel version you are using? Jboss Fuse 6.0.0 supports only camel 2.10 and Fuse 6.1.0 supports camel 2.12. Hence knowing which camel version you are using will help us debug your issue. Also check if the maven jar has the package which it says its missing. I found that packa

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread Himanshu Mittal
When we remove tempFileName from uri , FTP connections are not exhausted . -- View this message in context: http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017p5768097.html Sent from the Camel - Users mailing list archiv

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread Grzegorz Grzybek
Hello Himanshu What version of camel do you use? There was a fix for leaked connection in case of auth failures, but this looks like another issue. Could you create JIRA ticket, attaching information about your route/endpoint URI? regards Grzegorz Grzybek 2015-06-11 13:02 GMT+02:00 Himanshu Mitt

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread Himanshu Mittal
We faced this issue in *camel 2.12*. I tested the same with *camel 2.14* . Still I see connection being opened for each temp file. Created below JIRA for same CAMEL-8860 -- View this message in context: http://camel.465427.n5.nabble.com/To

PropertiesComponent overriding in Spring

2015-06-11 Thread Vincent Vandenschrick
Hi all, I'm migrating an application from Camel 2.14 to 2.15.2. I spent some time tracking a regression until I figured out that my custom "properties" (PropertiesComponent) spring bean was not taken anymore out of the Spring context no matter what I declared. After some more investigation, this se

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread Grzegorz Grzybek
Thanks I'll look at it soon regards Grzegorz 2015-06-11 14:41 GMT+02:00 Himanshu Mittal : > We faced this issue in *camel 2.12*. I tested the same with *camel 2.14* . > Still I see connection being opened for each temp file. > > Created below JIRA for same > CAMEL-8860

Tooling for Idea and Netbeans?

2015-06-11 Thread Tim Dudgeon
At today's (really great) Red Hat Microservices Architecture Developer Day in London [1] Claus Ibsen mentioned that there is now tooling support available for IntelliJ Idea and Netbeans as well as Eclipse (presumably what used to be Fuse IDE). If so this is awesone, but I can't find any info ab

Re: Trace from and to endpoints

2015-06-11 Thread Tim Dudgeon
I believe Camel tracks this automatically at the exchange level (assuming you are wanting this on a per-exchange basis). e.g. when you get an exception this information is written to the logs, so its already there. Try looking at the Exchange properties. Tim On 10/06/2015 16:51, rwijngaa wrote

ClassCastException in blueprint Route

2015-06-11 Thread John Dubchak
Hi, I have a service component, deployed as a separate bundle, that exports a package, com.example.services.configuration, and a service that implements a ConfigurationService interface in another package called LocalService: com.example.services.configruation.ConfigurationService com.exampl

Having problems with CamelContext.addRoutes() and ActiveMQ

2015-06-11 Thread Ross Woolf
I am having problems getting queue data from CamelContext. I am a newbie to Camel and so I just don't see what I am doing wrong. I am using: Camel 2.15.2 ActiveMQ 5.11.1 I am using the following code to send data to the queue and it works (all of this is just test code to learn Camel). public s

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread Himanshu Mittal
Temporary file name (Camel property : tempFileName )is creating new connection for each file transfer. -- View this message in context: http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017p5768121.html Sent from the Camel

Re: ClassCastException in blueprint Route

2015-06-11 Thread Andrew Block
John,  Would you be able to post how the service is being declared along with the service properties to ensure the correct service is being referenced in your consumer blueprint. Thanks, Andy --  Andrew Block On June 11, 2015 at 5:28:54 PM, John Dubchak (j...@johndubchak.com) wrote: Hi, I

using basic auth to protect camel rest dsl routes

2015-06-11 Thread Dan Moore
Hi folks, After banging my head for a bit, I wrote a blog post about using basic auth to protect rest dsl routes served using jetty: http://www.mooreds.com/wordpress/archives/2065 Would love any feedback. Thanks, Dan

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread yogu13
Hi, I would suggest adding one property at a time to the endpoint and narrowing it down to the property which is causing it. In case this hasn't been done. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is

Re: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.

2015-06-11 Thread yogu13
Nice!! Just a thought can you try using the tempPrefix instead of tempFileName, i see the tempFileName is a constant name provided and hope that it isn't running into locking issues Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME

using TransactionErrorHandler with Camel and Karaf

2015-06-11 Thread yogu13
Hi, I went through earlier posts on this and it looks like the TransactionErrorHandler is not supported as it uses Spring Tx in Osgi Blueprint (not sure if this holds true for the latest version). It is also assumed that in a transacted route onException wouldn't be used as any exceptions are rais

Removing namespaces from soap response using SoapOutInterceptor

2015-06-11 Thread gargankur007
http://schemas.xmlsoap.org/soap/envelope/";> http://wem-rmhpimpl.demo.hcentive.com:9090/wsx/services/WemRmhpHop3PaymentEffectuationService"/> This is current outcome I need http://schemas.xmlsoap.org/soap/envelope/";> Can this be achieved through any SoapOut

Re: ClassCastException in blueprint Route

2015-06-11 Thread yogu13
Hi, Looking at the stacktrace... the problem seems to be with the object returned by the getCurrentConfiguration method of your LocalConfigurationService. Looking at the trace it looks like blueprint did resolved the reference to your implementation and returned a proxy for it. would suggest to

printing message history in the order of routes declaration

2015-06-11 Thread mnki
Hi I have two routes route1 and route2.A bean in route1 is calling the route2. I want to log the time taken by each node.I am using Message History explained here http://camel.apache.org/message-history.html to print the details.But the issue is i want the message history of route1 to come first

Re: Transactional Client in Camel

2015-06-11 Thread yogu13
Thank you David, One last question on this regard..since transactional client signifies start of the transaction, does that mean configuration properties like transact=true and transactionManager on the jms endpoint wouldn't kick start a transaction as soon as a message arrives and instead it is o

How to control wsdl:binding name attribute through camel cxf exported classes

2015-06-11 Thread gargankur007
How to control wsdl:binding name attribute through camel cxf exported classes. >From which annotation is this derived? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-control-wsdl-binding-name-attribute-through-camel-cxf-exported-classes-tp5768096.html Sent fr

Re: Is there a tools to convert java dsl to xml ?

2015-06-11 Thread cloud
thanks for all ! jkorab , I will read you book , and follow you on Twitter . thanks . -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-a-tools-to-convert-java-dsl-to-xml-tp5768015p5768088.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Deploying REST service on running camel:jetty instance

2015-06-11 Thread Chandana
Is there a way to expose 2 restful web services from same camel route with the same base URI in a web container (Jetty in this case)? -- View this message in context: http://camel.465427.n5.nabble.com/Deploying-REST-service-on-running-camel-jetty-instance-tp5746625p5768066.html Sent from the C

Re: spring boot, jpa, entitymanagers and Java DSL

2015-06-11 Thread erik_romson
I suppose that. In Camel 2.3 the JpaComponent will auto lookup the EntityManagerFactory from the Registry which means you do not need to configure this on the JpaComponent as shown above. You only need to do so if there is ambiguity, in which case Camel will log a WARN. clearly states tha

Camel https 401 error

2015-06-11 Thread Vanshul . Chawla
Hello, We are trying to invoke a https service via camel route. We are able to successfully invoke that using http. With https, we have provided the truststore details and as we have no other auth mechanism like user name and password, we have not set any auth param. We get 401 error in respons

spring boot, jpa, entitymanagers and Java DSL

2015-06-11 Thread erik_romson
Hi, I'm a bit confused regarding the JPA endpoint and entitymanagers. I'm using spring boot and using the *default* entitymanager. As the documentation points out, the endpoints use different entity managers There are documentation of how to set an entity manager using spring xml or creating a JP