Re: Missing Stack Trace when Handling SOAP Fault from a CXF Endpoint

2011-04-07 Thread Willem.Jiang
Just a quick note for CXF server return the stack trace back to the client. If you are using SOAP 11 , CXF can put the stack trace into the fault message if you enable the option faultStackTraceEnabled like this

Re: Route Question

2011-04-07 Thread Claus Straube
I can't see the code. Perhaps this is the mailinglist issue Claus posted some days ago. But anyway - on one side it is a discussion about coding style. I think it's cleaner / easier to read to have two three line routes where each of the route has its own and clear task to do, than a all in one

Re: maven plugin

2011-04-07 Thread Claus Ibsen
Hi What version of Camel are you using? I have created a ticket to remove the DOT stuff https://issues.apache.org/jira/browse/CAMEL-3841 On Mon, Apr 4, 2011 at 4:53 PM, Mark Webb wrote: > I am testing some routes and would like to create some sample routes > to "play" with.  I am using maven

Re: http not cleaning up tmp files when exchange is stopped

2011-04-07 Thread Claus Ibsen
Hi Try sending plain txt mails (eg turn off HTML mails) that should work much better with the mailing list. I cannot reproduce the issue with stop on Camel trunk. I added some unit tests to camel-jetty to simulate what you are doing and it works fine. The tmp files is always deleted. On Mon, Ap

Access CamelRedeliveryCounter in error queue

2011-04-07 Thread Simon Kelly
Hi I am quite new to Camel but am enjoying it, good work! I'm using Camel 2.6.0 in Apache ServiceMix 2011.01. I have configured a route and a deadLetterChannel error handler that performs some retries and then sends the message to a SEDA queue. Once in the SEDA queue I'd like to be able to access

Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Andrey Popp
Hello, I'm investigating usage of Apache Camel for "lightweight" integration tasks. By "lightweight" I mean that I want to replace some shell scripts and Makefile targets which are running as cron jobs for now. The reasons to do this are to provide better error handling and reporting mechanisms fo

Re: FTP over Proxy

2011-04-07 Thread Charles Moulliard
Hi, For sure that we are interested. Here is the page describing the process to create a ticket + patch http://camel.apache.org/contributing.html Regards, Charles Moulliard Apache Committer -- View this message in context: http://camel.465427.n5.nabble.com/FTP-over-Proxy-tp3314841p4288277.htm

Re: Access CamelRedeliveryCounter in error queue

2011-04-07 Thread Claus Ibsen
On Thu, Apr 7, 2011 at 11:39 AM, Simon Kelly wrote: > Hi > > I am quite new to Camel but am enjoying it, good work! I'm using Camel 2.6.0 > in Apache ServiceMix 2011.01. I have configured a route and a > deadLetterChannel error handler that performs some retries and then sends > the message to a S

Re: Resequencing on many individual topics (1000's)

2011-04-07 Thread Joshua Watkins
I have figure out a way to limit the number of threads per JMS consumer. I needed to use the JMSConfiguration pojo to configure my ActiveMQComponent. The not-so-apparent change was changing the consumerType to simple instead of default. Hopefully this helps anyone else with the same issue. -josh

global onException doesnt apply for routes loaded with loadRoutesDefinition

2011-04-07 Thread Joerg Wuelker MIS-OSN
Hi, i am using camel 2.6.0 and try to load additional camel routes from XML outside the SpringXML. In the spring-context-xml i create a camel context with a global route and a global onException-definition. In addition i have an RoutesBuilder which loads additional (customer-)routes from XML

Using CamelJmsDestinationName to publish to topics in Xml

2011-04-07 Thread Joshua Watkins
I am trying to use the CamelJmsDestinationName header to send to a topic. However prepending topic: or activemq:topic: to my topic name simply sends reroutes the message to a queue with the name "activemq:topic:dynamicdestinationName". Ex: test dynamicDeliveryAddress topic:d

Re: Using CamelJmsDestinationName to publish to topics in Xml

2011-04-07 Thread Björn Bength
Hi, test dynamicDeliveryAddress dynamicdestinationName worked for me once. but i was using java dsl at the time. /björn On Thu, Apr 7, 2011 at 2:25 PM, Joshua Watkins wrote: > I am trying to use the CamelJmsDestinationName header to send to a topic. > However prepe

RE: JMS queue consumer hangs

2011-04-07 Thread Mike L .
Paul: What version of ActiveMQ are you using? Using version 5.4.x I had a similar problem, which is described in this thread: http://camel.465427.n5.nabble.com/InOut-over-JMS-always-leads-to-Timout-ExchangeTimedOutException-td4237336.html Try going back to 5.3.x or use the new 5.5.0! HTH, M

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
It is perfectly reasonable and doable, please see comments inline. On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: I'm wondering of the following setup: * Apache Camel running as daemon. In our project we pack Camel with maven-shade-plugin into uber-jar and laun

RE: JMS queue consumer hangs

2011-04-07 Thread paulvitic
Hello Mike, I am indeed using 5.4.1 and I will take your advice and try to upgrade to 5.5.0. However I think the problem may be something else. To see where exactly the route is failing I changed my configuration a little bit: === from("gatewayQueue:queue

Re: error in schema

2011-04-07 Thread Willem Jiang
Did you install the cxf feature? You can still use the the broker namespace in http://pastie.org/1761075 . the Eclipse error can be ignore, as the Spring can load the schema from the activemq-core jar. If you want eclipse happy you should change to use http://activemq.apache.org/schema/core/a

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Claus Straube
On 07.04.2011 15:33, Arkadi Shishlov wrote: It is perfectly reasonable and doable, please see comments inline. On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: I'm wondering of the following setup: * Apache Camel running as daemon. In our project we pack Camel wi

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Andrey Popp
> In our project we pack Camel with maven-shade-plugin into uber-jar and launch > it under nohup java -jar. > I do not have an access to wiki, but I can send you pom.xml and custom > Main.java, or publish it here for reference. It would be great, thanks. > The replace part could be tricky depen

Re: Using CamelJmsDestinationName to publish to topics in Xml

2011-04-07 Thread Joshua Watkins
That worked. Thanks! On 07/04/2011 13:36, "Björn Bength" wrote: >Hi, > > > test dynamicDeliveryAddress > > > dynamicdestinationName > > > > >worked for me once. but i was using java dsl at the time. > >/björn > > >On Thu, Apr 7, 2011 at 2:25 PM, Joshua Watkins > wrote: >> I a

Sending via smtp fails after some time

2011-04-07 Thread Barry Kaplan
I am sending emails from a server. The emails get sent fine for some hours (up to 24) but then I start getting exceptions that are ultimately: Caused by: javax.mail.AuthenticationFailedException: null I am using the default javaMailSender and sending via gmail. The jvm is started with Dmail.smt

Re: maven plugin

2011-04-07 Thread Mark Webb
I was using 2.6, but I tried 2.7 and its working fine. Thanks, Mark On Thu, Apr 7, 2011 at 3:51 AM, Claus Ibsen wrote: > Hi > > What version of Camel are you using? > > I have created a ticket to remove the DOT stuff > https://issues.apache.org/jira/browse/CAMEL-3841 > > > > On Mon, Apr 4, 2011

Re: Does activemq/jms component have keepalive option?

2011-04-07 Thread Tom Howe
Hi, Thanks for the pointer! I have changed to use PooledConnectionFactory as you suggest and it seems to work well now. Here is my config: does it look sensible?

Low Latency

2011-04-07 Thread fridlyos
Hello I'm fairly new to Camel, and hoping I can get some insights into this... I'm need to design and system, which has as low latency as I can. I still would like to leverage Camel, but not sure 1. How camel rout is initialized, that is - now frequently it's checking for messages? 2. Using

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
On Thu, 07 Apr 2011 17:06:58 +0300, Andrey Popp <8may...@gmail.com> wrote: In our project we pack Camel with maven-shade-plugin into uber-jar and launch it under nohup java -jar. I do not have an access to wiki, but I can send you pom.xml and custom Main.java, or publish it here for reference.

processor generating multiple messages

2011-04-07 Thread Mark Webb
I have a database that I need to query and put the results through a camel route. The query will result in hundreds of thousands of rows. My query will return 1000 rows at a time and pass them through the route. So I want to know how I can build a processor that can perform the query multiple tim

Best Practice fro Thread Safe processor

2011-04-07 Thread pminearo
I am fairly new to Camel and had a question about what are the best practices for using Threads in Camel Routes. I have Camel in Action which is a great book; but when it came to Threading the book only showed how to configure Camel. It did not go into what happens behind the scenese. It also doe

Difference between camel-activemq (1.1.0) and activemq-camel (5.2.0) libraries

2011-04-07 Thread Gert Villemos
What is the difference between the * Camel-Activemq (1.1.0) * Activemq-Camel (5.2.0) Libraries? Is the 'Camel-Activemq' library simply an old deprecated version no longer used? And should I always use 'Activemq-Camel'? Or is there a subtle difference? -- View this message in context: http:/

'Class not found' when Creating Camel route through Activemq console

2011-04-07 Thread Gert Villemos
I post this here and not in the activemq forum, as its a Camel route that courses the problem. In our setup I have Camel routes configured to inject to / read from a activemq topic called 'Parameters'. Each message in the body contains a POJO of type 'org.hbird.exchange.type.Parameter'. I have no

Has camel-jboss6 been added to Camal Extras yet?

2011-04-07 Thread rtmacphail
In reference to issue tracker #CAMEL-3825, I am trying to get a copy of the camel-jboss6 jar so I can use camel with JBoss 6. I downloaded the jar file attached to this issue, but it contains no class files. I've been looking on the the camel extra site at: http://camel-extra.googlecode.com/svn/mav

Re: processor generating multiple messages

2011-04-07 Thread Hadrian Zbarcea
That is correct. But nothing stops you from creating new exchanges and aggregate results later on. You can also use some sort of correlation id (query id) so you'll know that different exchanges refer to the same query. You can also enforce ordering if you want. You can also use multiple routes

Re: Difference between camel-activemq (1.1.0) and activemq-camel (5.2.0) libraries

2011-04-07 Thread Bruno Borges
Exactly. Always choose ActiveMQ-Camel. It is the component written and maintained by the ActiveMQ team themselves. Bruno Borges www.brunoborges.com.br +55 21 76727099 "The glory of great men should always be measured by the means they have used to acquire it." - Francois de La Rochefoucauld

Re: processor generating multiple messages

2011-04-07 Thread ben.oday
as suggested...multiple exchanges are necessary. just use a timer to periodically kickoff the route to check the database, add results to the exchange, split the results (if desired) and send them along...something along these lines from("timer://processResults?fixedRate=true&period=1")

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
On Thu, 07 Apr 2011 16:50:52 +0300, Claus Straube wrote: On 07.04.2011 15:33, Arkadi Shishlov wrote: On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: * Apache Camel should try to compile routes and in the case of success -- replace current routes with the new on

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread pminearo
Just to clarify a bit because maybe the Processor doesn't show it well nor my question: Java Concurrency in Practice states that "Stateless objects are always thread-safe". But what happens when you do have state? What is everyone finding works best for Threading? -- View this message in conte

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread Krsmanovic, Dragisa
Processors are singletons. Typically we don't hold any state in them. If you want to hold state in Processor, you can do it. In that case, of course, you have to think of concurrency. There are many ways to that as you can find in Java Concurrency in Practice. It's all up to you. On 4/7/11 1:40

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread pminearo
So, essentially you MUST create the Processor to be Thread Safe. Is there any way to create a New Instance of the Processor per Thread? -- View this message in context: http://camel.465427.n5.nabble.com/Best-Practice-fro-Thread-Safe-processor-tp4288973p4289705.html Sent from the Camel - Users

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread Krsmanovic, Dragisa
Using ThreadLocal to store the state perhaps ? On 4/7/11 4:44 PM, "pminearo" wrote: >So, essentially you MUST create the Processor to be Thread Safe. Is there >any way to create a New Instance of the Processor per Thread? > >-- >View this message in context: >http://camel.465427.n5.nabble.com/B

Re: Difference between camel-activemq (1.1.0) and activemq-camel (5.2.0) libraries

2011-04-07 Thread Hadrian Zbarcea
Yes, there is a subtle difference: 1. http://activemq.apache.org/how-should-i-package-applications-using-camel-and-activemq.html "[...] you may wish to use Camel's Enterprise Integration Patterns *inside* the ActiveMQ Broker [...]" 2. http://camel.apache.org/activemq.html http://camel.apache.

Re: Low Latency

2011-04-07 Thread ben.oday
I had similar concerns from a client in the past and wrote this simple unit test to get a feel for how quickly Camel can add/remove from a queue. This should give you a ballpark latency estimate (~5ms for my setup). You can also get some great AMQ performance stats via http://activemq.apache.org

onexception behavior change from 2.5 to 2.6

2011-04-07 Thread sanjai
Hello all, There seems to have been some change in the way onexception behaves from 2.5 to 2.6 an onwards. I believe the behaviour in 2.5 was correct. I have onexception set up as follows (in spring): java.net.SocketTimeoutExcept

Re: onexception behavior change from 2.5 to 2.6

2011-04-07 Thread sanjai
A little more on this. The behaviour is not quite as my original post describes. I have another onexception clause which picks up all other exceptions as shown at the end of this post. It turns out that when redelivery fails from the previous on exception clause, Camel thows a CamelException w

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread Willem.Jiang
As Camel has a async process module, you can't know if the processors are called in a single thread. If you are using the thread local to store the states, it may be massed up. My suggestion is store the states information into the Exchange, and Camel will make sure it is processed rightly. Will

Re: addTypeConverter does not clear misses in BaseTypeConverterRegistry

2011-04-07 Thread Willem.Jiang
Hi , Good catch of the issue of misses map. We should updated if a new TypeConverter is added. Please feel free to create a JIRA for it, We love the contribution :) Can you give me more detail about the webstart issue of the AnnotationTypeConverterLoader? What kind of error that you web start c

Re: FTP over Proxy

2011-04-07 Thread Charles Moulliard
Thx. I will try to have a look next week. On Thu, Apr 7, 2011 at 11:25 PM, alexey-s [via Camel] wrote: > Hi. > I have add https://issues.apache.org/jira/browse/CAMEL-3845 > > > Regards, > > Aleksey Sushko > > > If you reply to this email, your message will be adde