Re: Camel context shutdown after route (with smpp) initialization failure

2011-04-08 Thread Christian Müller
Hello Peter! The SmppConsumer is started by default if Camel starts and he must be able to connect the SMSC. The SmppProducer will create the connection to the SMSC, when the first exchange arrives by default. As Ben suggested, you can set the autostart option to false 'context.setAutoStartup(Bool

Re: Question about using mocks

2011-04-08 Thread Richard Kettelerij
Hi, This is possible as of Camel 2.7, see http://camel.apache.org/mock.html and in particular the section called "Mocking existing endpoints with XML DSL". You may also want to take a look at MockFtpServer ( http://mockftpserver.sourceforge.net/). It's great for writing integration tests. Regard

Re: Problem with multiple CXF services using the same https port

2011-04-08 Thread Christian Müller
Hello Ade, Willem, Charles, I updated https://issues.apache.org/jira/browse/CAMEL-3756. May be you could have a look on it. I have a problem with deploying it into ServiceMix 4.3.1-fuse-01-09. With ServiceMix 4.2.0-fuse-02-00 everything works as expected. Cheers, Christian

Re: Question about using mocks

2011-04-08 Thread Hadrian Zbarcea
You mean by using the properties component [1]? It may not be immediately obvious from the examples there, but you can have something like And the 'destination' would be defined in a properties file specific to your environment. So you'd only have to modify the url in a propert

Question about using mocks

2011-04-08 Thread jpalmer1026
I'm trying to test a route that moves a message from the file system to an ftp server. I have a simple route defined as follows: I'd like to unit test the transfer by using a mock component for the ftp component. The Camel in Action book has some great examples on using mock components

Re: FYI, JmsEndpoint.consumerType removed but still in docs

2011-04-08 Thread Hadrian Zbarcea
Hi Barry, Claus made that change part of the upgrade to spring 3 because the SimpleMessageListenerContainer was deprecated. Therefore the consumerType made no sense anymore as you only have one option, the JmsMessageListenerContainer. I'll update the docs. Thanks for reporting this! Hadrian

FYI, JmsEndpoint.consumerType removed but still in docs

2011-04-08 Thread Barry Kaplan
I see it was removed in revision 1067441. Yet the web site docs still how it as an option. Also I could not find any indication in the release notes that it was removed and why. -- View this message in context: http://camel.465427.n5.nabble.com/FYI-JmsEndpoint-consumerType-removed-but-still-in-do

Re: Access CamelRedeliveryCounter in error queue

2011-04-08 Thread Claus Ibsen
On Fri, Apr 8, 2011 at 5:13 PM, simon.kelly wrote: > So essentially I can't access it once its in the error queue. Is there any > other way of doing this? > Yeah maybe we should keep that information in case people wanted to access it, or offer it as a property on the Exchange as it thus wont inf

Re: Camel context shutdown after route (with smpp) initialization failure

2011-04-08 Thread ben.oday
you should be able to set noAutoStartup() on the routes and then use a separate process to try to start them later peter.argalas wrote: > > Is there any option how to ignore routes (remove them from context), that > could not be started and start camel without them? > - Ben O'Day IT Consu

Re: Low Latency

2011-04-08 Thread fridlyos
Thanks very much for the reply. I'll try to set up something similar. In any case, ~5ms sounds acceptable (I have Tibco EMS to work with). I'm also getting a hight throughput - my only concern is whith the responsiveness of the system when there is only one message (for example) - I don't hav

Re: Sending via smtp fails after some time

2011-04-08 Thread Barry Kaplan
I'm only using one smtp endpoint. I also send email via logback via the same smtp server with the same credentials and that never fails. I was looking at how logback uses javamail vs spring and its quite different. Logback sets up an authenticator with the transport, where passes the u/p with each

Re: Access original message after transform

2011-04-08 Thread Claus Ibsen
See the Content Enricher EIP http://camel.apache.org/content-enricher.html On Fri, Apr 8, 2011 at 5:11 PM, Simon Kelly wrote: > Hi > > I have a situation where I receive a message on a queue and need to > transform it to send it to a third party. I need to be able to combine the > response from

Re: Access CamelRedeliveryCounter in error queue

2011-04-08 Thread simon.kelly
So essentially I can't access it once its in the error queue. Is there any other way of doing this? -- View this message in context: http://camel.465427.n5.nabble.com/Access-CamelRedeliveryCounter-in-error-queue-tp4288089p4291125.html Sent from the Camel - Users mailing list archive at Nabble.com

Access original message after transform

2011-04-08 Thread Simon Kelly
Hi I have a situation where I receive a message on a queue and need to transform it to send it to a third party. I need to be able to combine the response from the third party with the original message in order to produce my response. I can't seem to find a way of doing that. Any assistance great

Camel context shutdown after route (with smpp) initialization failure

2011-04-08 Thread peter.argalas
Hi, in my project I use 3 routes (each route connects to one SMSC using camel-smpp). Problem is that if one SMSC is down, smpp connection cannot be created so respective route cannot be started and this lead to camel shutdown. Is there any option how to ignore routes (remove them from context),

Re: Has camel-jboss6 been added to Camal Extras yet?

2011-04-08 Thread rtmacphail
That did it! It works now. Thank-you very much. -- View this message in context: http://camel.465427.n5.nabble.com/Has-camel-jboss6-been-added-to-Camal-Extras-yet-tp4289222p4290932.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: aggregator - error handling default does not propogate error

2011-04-08 Thread Christian Mueller
Claus, this is unfortunately not the same behavior we found out with the enrich processor (which also use the AggregationStrategy). We can reproduce the following behavior (with Camel 2.6): - If the exception is handled, the exception is not anymore set in the exchange (exchange.getException() as y

Re: Has camel-jboss6 been added to Camal Extras yet?

2011-04-08 Thread Claus Ibsen
On Fri, Apr 8, 2011 at 3:11 PM, rtmacphail wrote: > Hi, > > Thanks for the quick response. I tried the updated JAR and modified the > package name in my camel context configuration. JBoss at least now finds the > Resolver class. But I'm getting an exception upon deployment: > > Caused by: java.lan

Re: Has camel-jboss6 been added to Camal Extras yet?

2011-04-08 Thread rtmacphail
Hi, Thanks for the quick response. I tried the updated JAR and modified the package name in my camel context configuration. JBoss at least now finds the Resolver class. But I'm getting an exception upon deployment: Caused by: java.lang.NoSuchFieldError: log at org.apachextras.camel.jboss.

Re: Improvement of the Idempotent Repository

2011-04-08 Thread Claus Ibsen
Hi We need to make it database agnostic so we can't have oracle specific sql functions in there. However we should be able to add a row with created_timstamp and use a java.util.Date object type. JPA should be able to map that to any database. On Mon, Apr 4, 2011 at 5:13 PM, Christian Müller w

Re: Camel split-aggregate parallelProcessing hiccup

2011-04-08 Thread davsclaus
You need to enable streaming if you want out-of-order completion of the splitted messages. By default Camel will honor the order the messages is splitted, and use the same order for its aggregation. If you enable streaming, then it aggregates on-the-fly. - Claus Ibsen - FuseS

Re: global onException doesnt apply for routes loaded with loadRoutesDefinition

2011-04-08 Thread Claus Ibsen
Yeah Camel 3.0 will improve on this as we will refactor and improve parts of the internal routing engine / builder to cater for that. So error handlers and the likes is applied in a more dynamic fashion, instead of as now, as being applied during route build time. On Thu, Apr 7, 2011 at 2:06 PM,

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

2011-04-08 Thread Claus Straube
On 08.04.2011 10:14, Arkadi Shishlov wrote: On Fri, 08 Apr 2011 10:58:27 +0300, Claus Straube wrote: An empty multicast is no error. ArrayList l = new ArrayList(); from("direct:a").multicast().to(l); java.lang.IllegalArgumentException: Definition has no children on Multicast[[]] at org.a

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

2011-04-08 Thread Arkadi Shishlov
On Fri, 08 Apr 2011 10:58:27 +0300, Claus Straube wrote: An empty multicast is no error. ArrayList l = new ArrayList(); from("direct:a").multicast().to(l); java.lang.IllegalArgumentException: Definition has no children on Multicast[[]] at org.apache.camel.model.ProcessorDefinition.crea

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

2011-04-08 Thread Claus Straube
On 07.04.2011 22:29, Arkadi Shishlov wrote: 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 --

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

2011-04-08 Thread Claus Ibsen
Hi You can disable mapping JMX messages using mapJmsMessage=false option See http://camel.apache.org/jms On Thu, Apr 7, 2011 at 8:49 PM, Gert Villemos wrote: > 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

Re: Sending via smtp fails after some time

2011-04-08 Thread Claus Ibsen
Hi No idea. You can try upgrading the Java Mail API you use. However I think some of the latest releases requires JDK6 now. Also we fixed an issue when you had multiple smtp endpoints defined, where camel-mail would use the default mail session. In Camel 2.7 it always uses a new mail session inst

Re: Best Practice fro Thread Safe processor

2011-04-08 Thread Claus Ibsen
On Fri, Apr 8, 2011 at 7:24 AM, Willem.Jiang wrote: > 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 Exch

Re: Has camel-jboss6 been added to Camal Extras yet?

2011-04-08 Thread Claus Ibsen
Hi I have updated the attached JAR file on the ticket. Can you try again. Mind the package name has changed. So read the comment in the JIRA ticket. On Thu, Apr 7, 2011 at 9:07 PM, rtmacphail wrote: > In reference to issue tracker #CAMEL-3825, I am trying to get a copy of the > camel-jboss6 jar

Re: Has camel-jboss6 been added to Camal Extras yet?

2011-04-08 Thread Joerg Wuelker MIS-OSN
When i tested Camel on JBoss6 i had the same problem. As a workaround i got the SourceCode from http://camel-extra.googlecode.com/svn/trunk/components/camel-jboss/src/main/java/org/apache/camel/jboss/JBossPackageScanClassResolver.java and changed it: - the package 'org.jboss.virtual' changed to