Re: FTP timeout on write

2014-02-25 Thread javamonkey79
it looks like the file is locked with 0 bytes as far as I can tell. I can't read it or delete it and my tools show 0 -- View this message in context: http://camel.465427.n5.nabble.com/FTP-timeout-on-write-tp5747966p5747994.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP timeout on write

2014-02-25 Thread Claus Ibsen
Hi Maybe its active vs passive mode problem? And also there is a binary mode as well, if the data is binary or text based. And is the file really zero bytes or does it contain data? On Wed, Feb 26, 2014 at 2:28 AM, javamonkey79 wrote: > For the record, it connects, creates the file with 0 bytes

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread Claus Ibsen
Hi Try with * On Wed, Feb 26, 2014 at 7:26 AM, contactreji wrote: > Hi Clause > > Thanks for your prompt help! :-) > > I followed your advice and did following changes in the POM file. > > * > org.apache.felix > maven-bundle

Re: Processor threading model question

2014-02-25 Thread Claus Ibsen
is NEW_QUEUE a jms queue? If so you can use concurrentConsumers / maxConcurrentConsumers for concurrency. And see also the asyncConsumer option. Read this page, about these options, and check also for concurrency http://camel.apache.org/jms On Wed, Feb 26, 2014 at 7:39 AM, Rural Hunter wrote:

Re: Processor threading model question

2014-02-25 Thread Rural Hunter
Hi, I implemented this but I'm facing severe performance problem. My legacy application handles this by separated threads and the performance is more than 10 times of my Camel application. I don't know if it's my Camel application problem or it's the problem of Camel. Here the detail of my ap

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread contactreji
Hi Clause Thanks for your prompt help! :-) I followed your advice and did following changes in the POM file. * org.apache.felix maven-bundle-plugin 2.3.4 true

[ANNOUNCE] Apache Camel 2.12.3 Released

2014-02-25 Thread Willem Jiang
The Apache Camel project [1] is a powerful open source integration framework based on known Enterprise Integration Patterns [2].  The Camel community announces the immediate availability of the new patch release camel-2.12.3.  The artifacts are published and ready for you to download [3] either

Re: FTP timeout on write

2014-02-25 Thread javamonkey79
For the record, it connects, creates the file with 0 bytes and then times out. These are not large files. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-timeout-on-write-tp5747966p5747972.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is there an alternative to request-reply when you want to use JMS transactions?

2014-02-25 Thread kraythe .
I don't see adding a custom header to be a big deal. You have to remember when you are doing multi route processing with JMS in between everything is happening asynchronously. The old semantics you are used to of request-reply are not necessarily appropriate. Asynch programming is much more powerfu

Re: show ftp commands

2014-02-25 Thread javamonkey79
Remember to add this to the pom if using slf4j: org.slf4j log4j-over-slf4j ${slf4j-version} As camel uses log4j. -- View this message in context: http://camel.465427.n5.nabble.com/show-ft

FTP timeout on write

2014-02-25 Thread javamonkey79
Hello, When I write an FTP endpoint on my local machine it works fine, but when deployed to the server I get: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: Could not parse response code. Server Reply: : A remote host did not respond within the timeou

Re: jetty minThreads/maxThreads in OSGi and multiple consumers

2014-02-25 Thread samslara
Perfect, thank you for the response. -- View this message in context: http://camel.465427.n5.nabble.com/jetty-minThreads-maxThreads-in-OSGi-and-multiple-consumers-tp5747706p5747964.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is there an alternative to request-reply when you want to use JMS transactions?

2014-02-25 Thread BlackTie
I have implemented my proposed solution from my previous post, and it seems like it will work out. However, performing the aggregation in a separate route is a bit trickier than using an AggregationStrategy on the multicast or recipientList themselves. It doesn't look like any of the headers/prop

Re: Use activemq connection pool without spring?

2014-02-25 Thread kraythe .
Remember spring is just an XML way to call setters and getters. But here is how I do it in JBoss: camelContext, final JndiRegistry registry) { log.info("Using AMQ Connection factory with JNDI Name: " + config.activeMQConnectionFactoryJNDIName()); final ConnectionFactory amqcf = registry.lo

Re: How to aggregate all messages into a single message?

2014-02-25 Thread kraythe .
Its easy to use a custom aggregator than try to do with DSL. See http://camel.apache.org/aggregator2 As an example: public class ListAggregationStrategy implements AggregationStrategy { /** The comparator used to keep the list sorted if any. */ final Comparator comparator; /** * @param

Re: Camel logging with log4j.properties not working

2014-02-25 Thread kraythe .
Camel uses SLF4J internally for logging. Just download an SLF4j to LOG4J Bridge Jar and put it in the class path and you should be in business. RE: http://www.slf4j.org/legacy.html *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)*

Suggestions to work around JNDI Problem in Test Case

2014-02-25 Thread kraythe .
I am having a problem that i hope people can help me with a workaround. The options not available to me are patching Camel code, using pre-released versions or beta versions. I have to work around the problem with the existing camel software. The problem is fairly simple but takes a bit to explain.

Re: How to improve efficiency with Camel?

2014-02-25 Thread Henryk Konsek
Hi Pedro, > The code of the route is provided in the configure() method, But you got only single route configured there :) . from(xmpp).filter(...).process(...).to("esper"); So the whole route will be executed in the single thread i.e. the same thread will pick the message from XMPP client and

[ANNOUNCE] Apache Camel 2.11.4 Released

2014-02-25 Thread hadrian
The Apache Camel project [1] is a powerful open source integration framework based on known Enterprise Integration Patterns [2]. The Camel community announces the immediate availability of the new patch release camel-2.11.4. The artifacts are published and ready for you to download [3] either

Re: Camel netty response is trimied for large data

2014-02-25 Thread bulutoprak
Hi, In PROD configuration,we are using activemq 5.5.0. Is it ok to use this version of activemq or should i switch to 5.9.0 version. I will try with this configuration. Thanks for the answer. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-netty-response-is-trimmed-f

Camel logging with log4j.properties not working

2014-02-25 Thread SpongeBobSquarePants
Hi, I am using Camel 2.12.2 and I have been able to setup my routes and they are working fine, however I am not able to redirect any of the logs from camel or my application into log files. This is how my log4j.properties looks like: log4j.rootLogger=DEBUG, FILE log4j.logger.org.apache.camel=DEBU

Re: How to set List in setBody (Blueprint DSL)

2014-02-25 Thread nono
it works now. thx for the hints userid password command -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851p5747932.html Sent f

Re: How to improve efficiency with Camel?

2014-02-25 Thread Pedro Martins
The code of the route is provided in the configure() method, and my logs show that 1 thread is handling both routes :S Do you want to see them? 2014-02-25 9:19 GMT+00:00 Henryk Konsek : > Hi, > > > The images are now fixed ! > > Actually I still can't see the difference. :) > > By default Camel

Re: Builder constant unable to get the headers

2014-02-25 Thread jay
Thanks a lot. it works for me. -- View this message in context: http://camel.465427.n5.nabble.com/Builder-constant-unable-to-get-the-headers-tp5747890p5747931.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to aggregate all messages into a single message?

2014-02-25 Thread Jens Breitenstein
Hi we aggragate all messages having the same key like this: .aggregate(new GroovyExpression("exchange.in.body.InstrumentID"), new QuoteAggregationStrategy()) and get a List as result ("isStoreAsBodyOnCompletion() returns true"). The QuoteAggregationStrategy is required to implem

Re: Handling objects in the rabbitmq component

2014-02-25 Thread Steffen Larsen
Hi Guys, Does nobody have any ideas how to parsing an object into rabbitmq component? -Cheers /Steffen On 21 Feb 2014, at 13:15, Steffen Larsen wrote: > Hi There, > > I have a rabbitmq component that should consume an java POJO object. It works > quite fine outside of camel, where I can hand

Re: How to set List in setBody (Blueprint DSL)

2014-02-25 Thread Claus Ibsen
On Tue, Feb 25, 2014 at 10:51 AM, nono wrote: > Thanks for the hints. I tried to define list as below.but it does not work > what namespace should I use for blueprint for using List ? where could I > find such information? > Check the blueprint project http://aries.apache.org/modules/blueprint.ht

Re: How to set List in setBody (Blueprint DSL)

2014-02-25 Thread nono
Thanks for the hints. I tried to define list as below.but it does not work what namespace should I use for blueprint for using List ? where could I find such information? userid password command ${ref:secureStartList} I got the exception Caused

Re: How to copy files from one directory to another within the same ftp server.

2014-02-25 Thread skasish
Christian, Thank you for your reply. But I cannot find such type of example. Can you tell me the specific name -- View this message in context: http://camel.465427.n5.nabble.com/How-to-copy-files-from-one-directory-to-another-within-the-same-ftp-server-tp5747898p5747925.html Sent from the Ca

Re: How to copy files from one directory to another within the same ftp server.

2014-02-25 Thread Christian Müller
Did you checked? http://camel.apache.org/ftp http://camel.apache.org/ftp-example Best, Christian Am 25.02.2014 08:09 schrieb "skasish" : > > How to copy files from one directory to another within the same ftp server. > > ftp > |__MF > |__GT > > I wat to copy the files from MF to GT. > > How is it

Re: JDBC Connection object in Camel Processor

2014-02-25 Thread Christian Müller
Create/Configure a connection pool in Spring and inject this into your Processor, which you should also create/configure in Spring. Best, Christian Am 25.02.2014 07:48 schrieb "contactreji" : > Hi > > I am trying to do a database operation inside a Processor class. > > I have a code > > *private

Re: How to improve efficiency with Camel?

2014-02-25 Thread Henryk Konsek
Hi, > The images are now fixed ! Actually I still can't see the difference. :) By default Camel processes each poll consumer thread (i.e. route) in separated thread. If you define two DB consumers, they will poll the database server concurrently. Please send us your route, so we could tell you m

Re: What's the proper way to abandon a message in processor.

2014-02-25 Thread Claus Ibsen
You can stop it by setting the stop property on the exchange. See the box in top of this page http://camel.apache.org/intercept On Tue, Feb 25, 2014 at 9:30 AM, simafengyun wrote: > Hi, > > Some message are not useless. So I want to abandon it in the processor. > *Does anybody know what's the pr

Re: How to aggregate all messages into a single message?

2014-02-25 Thread tharangage
I am having another issue based on same solution given by "dulanov". Is it possible to group N lines together? I come up with solution as follow without aggregation, but it is better if i can use aggregation as describe in this post. Can anyone please help on this? from("file:/temp/test").split()

Re: Use activemq connection pool without spring?

2014-02-25 Thread Rural Hunter
Got it. Thanks. 于 2014/2/25 16:05, Claus Ibsen 写道: Yeah check the source code of unit tests for camel-jms

Please help about the RejectedExecutionException issue

2014-02-25 Thread simafengyun
Hi, I deployed 2 bundles in KARAF2.3.3 cluster. One is client bundle and the other is a service bundle. Thy are deployed in different cluster nodes. Client bundle has a camel route. it just receives message from JMS server and pass the message to service bundle by invoking remote OSGI service i

What's the proper way to abandon a message in processor.

2014-02-25 Thread simafengyun
Hi, Some message are not useless. So I want to abandon it in the processor. *Does anybody know what's the proper way to abandon a message except using filter?* ex: If a message doesn't satisfy some condition

Re: Use activemq connection pool without spring?

2014-02-25 Thread Claus Ibsen
On Tue, Feb 25, 2014 at 9:02 AM, Rural Hunter wrote: > Thanks. I know how to create a ConnectionFactory. My question is how to use > it with ActiveMQComponent. Is there some code sample? > Yeah check the source code of unit tests for camel-jms > 于 2014/2/25 15:31, Claus Ibsen 写道: > >> Hi >> >> Y

Re: Use activemq connection pool without spring?

2014-02-25 Thread Rural Hunter
Thanks. I know how to create a ConnectionFactory. My question is how to use it with ActiveMQComponent. Is there some code sample? 于 2014/2/25 15:31, Claus Ibsen 写道: Hi Yeah you can setup the pooling using java code. The unit tests of camel-jms does that etc. https://github.com/apache/camel/bl