Re: Disable Camel Routes

2010-11-30 Thread Claus Straube
Hi Ray, you can stop a route: context.stopRoute("myQuartzRouteId") //context is the camel context Of course you have to add a id to your route: from("direct:foo") .routeId("myQuartzRouteId") .to("direct:bar"); Best regards - Claus Am Dienstag, den 30.11.2010, 20:28 +0100 schrieb rxm0203 : I

Disable Camel Routes

2010-11-30 Thread rxm0203
I am running Camel 2.4 under ServiceMix 4.2.0 version. All routes have been defined in camel-context.xml. I have few routes running on Quartz schedule. Is it possible to disable Quartz routes for testing purpose without making any changes in camel-context.xml or source code during run time? I want

Re: concurrentConsumers issue

2010-11-30 Thread khein
I've reproduced this issue with just the Spring DefaultMessageListenerContainer. Will work the issue through the Spring guys. Thanks for the quick responses. -- View this message in context: http://camel.465427.n5.nabble.com/concurrentConsumers-issue-tp3285351p3287161.html Sent from the Camel

Could I configure to remove InstrumentStrategy of camel?

2010-11-30 Thread ext2
Hi: Camel's InstrumentationStrategy will works by default. Does anyone knows how to configured to remove it? Because I wont to implement mine InstrumentationStrategy instead; Thanks any suggestion;

Re: concurrentConsumers issue

2010-11-30 Thread khein
I've used the Spring JMS listeners many times and never encountered this. I'll convert my test to using Spring JMS to verify. This is major issue because of the unreliability it causes. Basically a long running thread (or one that transactionally binds, hangs, etc) delays processing of other d

MINA connection pool

2010-11-30 Thread M.Ismail
Hi All, I need to create a MINA connection pool to send requests to 3 or 4 IP adresses. I need to create a max of only 7 connections per IP. This question was asked before in the MINA's forum but the answer was to use apache commons pool http://old.nabble.com/socket-connection-pool-in-client-app

Re: [Aggregator] Persistence ?

2010-11-30 Thread Olivier.Roger
About the Codec class, I use an adapted version of the HawtDBCamelCodec to (un)marshall the exchanges to and from byte arrays. It uses a simple ObjectInputStream to decode the objects. However, as in Camel-3120 the aggregator bundle should have a *. This permits to decode object from classes expo

Build a bean from a Master Detail flat file

2010-11-30 Thread Marco Bettiol
I have one flat file with the following structure: //Order Headers header A header B ... -- //OrderDetails detail A.1 detail B.1 detail B.2 in other word I have a file where at the beginning I can find the orders headers and then the order

Re: Validator does not recognize body as XMl document?

2010-11-30 Thread Andreas A.
Doing a corrects makes the validator recognize this as xml and not a SpyObjectMessage. -- View this message in context: http://camel.465427.n5.nabble.com/Validator-does-not-recognize-body-as-XMl-document-tp3285928p3286226.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Validator does not recognize body as XMl document?

2010-11-30 Thread Andreas A.
Error: org.apache.camel.processor.validation.NoXmlBodyValidationException: No XML body could be found on the input message. Exchange[JmsMessage: org.jboss.mq.SpyObjectMessage { Header { jmsDestination : QUEUE.MyQueue jmsDeliveryMode : 2 jmsExpiration : 0 jmsPriority : 4 jmsM

Re: Question on VM Endpoint, multipleConsumers and OSGi

2010-11-30 Thread klausb
Hi Guillaume, with the standard featuresRepositories from Karaf the attempt to load the nmr deature fails (feature is unknown). Therefore I added the servicemix repositories to it. Now I see an unresolved constraint: Error executing command: Could not start bundle mvn:org.apache.felix.karaf.depl

Scheduled FTP polling -again

2010-11-30 Thread mikaelfj
Hi, I know there are several posts on this subject - but I need to have the following approach qualified. We need to fetch files from FTP and want to control when and how often this is done. (I'm aware that there is some upcoming feature to provide a DSL for the FTP component to control this, b

Re: Question on VM Endpoint, multipleConsumers and OSGi

2010-11-30 Thread Guillaume Nodet
Try "features:install nmr" ... On Tue, Nov 30, 2010 at 14:38, klausb wrote: > > Can I use NMR inside pure Karaf? I mean without using a complete ServiceMix > installation. > What features do I need to install? > > klaus. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Qu

Re: Question on VM Endpoint, multipleConsumers and OSGi

2010-11-30 Thread klausb
Can I use NMR inside pure Karaf? I mean without using a complete ServiceMix installation. What features do I need to install? klaus. -- View this message in context: http://camel.465427.n5.nabble.com/Question-on-VM-Endpoint-multipleConsumers-and-OSGi-tp3284450p3286154.html Sent from the Camel -

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-30 Thread enalposi
> from(source).process(myInProcessor).to(destination).process(myOutProcessor). Ah, this works. Very nice. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-causing-Unit-Test-Failure-without-any-actual-marshalling-active-tp3278807p3286117.html Sent from the Camel -

Re: Where to get HawtDB 1.5?

2010-11-30 Thread Andreas A.
Thanks. I found my way to the snapshots of hawtdb and hawtbuf in the meantime. I don't understand why linking directly to a file containing your actual product is neglected so much in this community. If you don't use maven it's hell finding these things. There's a link to HawtDB 1.2 on the downlo

Cannot handle Exception thrown from Splitter Expression

2010-11-30 Thread s_albrecht
After I upgraded from camel 2.2.0 to 2.5.0 I found an issue with exceptions thrown by splitter expressions. These exceptions are neither caught by route local error handlers nor by global error handlers. Is this a feature or bug ? See attached JUnit for details. http://camel.465427.n5.nabble.com/f

Re: Where to get HawtDB 1.5?

2010-11-30 Thread Richard Kettelerij
Take a look at the Maven repo: http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/hawtdb/hawtdb/1.5/ -- View this message in context: http://camel.465427.n5.nabble.com/Where-to-get-HawtDB-1-5-tp3286030p3286037.html Sent from the Camel - Users mailing list archive at Nabb

Where to get HawtDB 1.5?

2010-11-30 Thread Andreas A.
Hi I'm trying to test persisting the Aggregator with the HawtDB component. It needs HawtDB 1.5 but on the HawtDB website there's either a link for HawtDB 1.2 or the 1.6 snapshot. on top of that the Camel website states that HawtDB 1.5 is shipped with Camel? "There is a bug in HawtDB 1.4 or olde

Could I configure to remove InstrumentStrategy of camel?

2010-11-30 Thread ext2
Hi: Camel's InstrumentationStrategy will works by default. Could I configured to remove it? Because I wont to implement mine InstrumentationStrategy instead; Thanks any suggestion;

Validator does not recognize body as XMl document?

2010-11-30 Thread Andreas A.
Hi When I try to validate a marshalled XML document the validator component throws an exception saying that no XML body is found on the object. However if I comment out the validator the route progresses correctly and the XML is transformed as expected. Am I missing something or is this a bug?

Re: Not possible to catch an java.lang.Error.

2010-11-30 Thread Andreas A.
I was wrong, I can catch an Error, but not throw one. -- View this message in context: http://camel.465427.n5.nabble.com/Not-possible-to-catch-an-java-lang-Error-tp3285827p3285847.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-30 Thread Willem Jiang
On 11/29/10 11:14 AM, enalposi wrote: Willem - I should upgrade to 2.5 first and see if I can reproduce but it's not as straight forward as hoped I am afraid. Btw - I am defining the routes programmatically at startup time such as - ... RouteBuilder { public void configure() { from(sour

Re: How to improve robustness of my routes?

2010-11-30 Thread Andreas A.
Hi No. I need the messages one by one on the JMS queue. What if your "DumpToJmsProcessor" fails after having sent half of the messages to the JMS queue? The file will roll back but the messages sent to the JMS queue are still there. However I can confirm that the transactions are working fine on

Integrate camel and spring-integration

2010-11-30 Thread Bingliu
Hello, I am using camel link to spring-integration.I define some channels, and also define a route, a transformer and two service-activators.The graph like this: -->service-activator1-->router-->transformer-->service-activator2 but now camel call the inputchannel to link the service-activator1,and

Not possible to catch an java.lang.Error.

2010-11-30 Thread Andreas A.
Hi I have been experiencing some problems with OutOfMemoryError in my production environment and I would like to shut down the application when this occurs. I thought of doing this by catching java.lang.Error and then shutting down the app. However this is not possible as there's only the possibi

Re: Observation on OSGi and NoTypeConversionAvailableException

2010-11-30 Thread klausb
Yes, I used features. I defined my own feature, which loads this camel-core camel-spring camel-xstream klaus. -- View this message in context: http://camel.465427.n5.nabble.com/Observation-on-OSGi-and-NoTypeConversionAvailableException-tp3285742p3285822.html Sent from the Camel - Users mailing

Re: Observation on OSGi and NoTypeConversionAvailableException

2010-11-30 Thread Claus Ibsen
Hi Did you install camel using features? features:install camel Which loads and ensures all JARs and bundles is installed correctly. Also each Camel component has a feature, eg camel-mail features:install camel-mail On Tue, Nov 30, 2010 at 9:29 AM, klausb wrote: > > While coding with Karaf

Re: Question on VM Endpoint, multipleConsumers and OSGi

2010-11-30 Thread Claus Ibsen
The NMR can pass in any kind of objects. Its the JBI which has to normalize to XML. (due the spec. says so) On Tue, Nov 30, 2010 at 9:21 AM, klausb wrote: > > Hi Claus, > > I was explicitely heading to camel to avoid XMl marshaling for NMR. > I need pretty high performance to  pass messages arou

Observation on OSGi and NoTypeConversionAvailableException

2010-11-30 Thread klausb
While coding with Karaf and Camel 2.5.0, I made the following observation: If I'm loading two communicating bundles using the VM endpoint I do not see any problems. Both get started and exchange messages as expected. Afterwards, if I quit Karaf (^D) gracefully and restart it, Karaf wants reloads

Re: Question on VM Endpoint, multipleConsumers and OSGi

2010-11-30 Thread klausb
Hi Claus, I was explicitely heading to camel to avoid XMl marshaling for NMR. I need pretty high performance to pass messages around. Therefore I want to leave them in their native format (POJOs). That's where Camel comes along very handy. At the same time the VM endpoint promised the pub-sub fe