Re: camel:http Get /PATH

2010-03-18 Thread Willem Jiang
Hi I think you should use Exchange.HTTP_PATH to specify the PATH. Willem Tapdur wrote: hi i have a big issue with the http component i want in the header HTTP_URI only the path without prefix by the host. by defaut it won't be ok to(http://@ip/path -> HTTP_URI = GET http://@IP/path i try

camel:http Get /PATH

2010-03-18 Thread Tapdur
hi i have a big issue with the http component i want in the header HTTP_URI only the path without prefix by the host. by defaut it won't be ok to(http://@ip/path -> HTTP_URI = GET http://@IP/path i try this from(direct:notif) .setHeader(Exchange.HTTP_URI,"/path") .to(http://@ip); it fails ,

Cannot resolve reference parameter, if Spring Proxy?

2010-03-18 Thread tide08
Version: 2.2.0 I have bean which is annotated for Spring's MethodMonitorInterceptor. Since it is annotated it is proxy-ed by Spring on initialization. It looks like camel cannot resolve reference to that parameter as it tries to cast based class defined in Spring Context. Is there way to resolve

Re: Camel-Mail: Alternative part does not handle charset?

2010-03-18 Thread tide08
@willem Sorry, it took longer but I have updated the patch (have not test it for 2.3.0) on JIRA. Thanks! willem.jiang wrote: > > Hi, > > I just have a look at the patch, and I can't just copy the java file > into the repository, as there are some change on the MailBinding.java > since Cam

Re: ScheduledPollConsumer - poll() behavior?

2010-03-18 Thread tide08
Sorry, I am much confused at this point :( In regards to ScheduledPollConsumer, is poll() method invoked by concurrent consumers? or is it just one consumer? I just see one thread invoking poll(), what is threadpool for than? Thanks! tide08 wrote: > > Hi, > > I am writing custom component

Re: Synchronous MEP across camel contexts

2010-03-18 Thread Ashwin Karpe
Hi, You could use ActiveMQ as suggested by Stephen or alternatively you could use Camel Mina (TCP) with sync=true for e.g On Consumer --- from("mina:tcp://localhost:9123?sync=true") .process(new Processor() { public void process(Exchange exchange) throws Exception {

Re: Synchronous MEP across camel contexts

2010-03-18 Thread Alexandros Karypidis
Ok, apologies for this post; "vm" does support "in-out" and I simply had to explicitly set the pattern when creating the exchange, as follows: Exchange exchange = camelContext.getEndpoint("direct:origin") .createExchange(ExchangePattern.InOut); // not just createExchange() without param! On

Re: Synchronous MEP across camel contexts

2010-03-18 Thread Stephen Gargan
Cheap and cheerful, you could use JMS, ActiveMQ is very easy to embed for this purpose (like a basic NMR). It will give you cross context blocking you are looking for and also make it easy to separate the contexts across the network if you have to. ste On Thu, Mar 18, 2010 at 10:42 AM, Alexandros

Synchronous MEP across camel contexts

2010-03-18 Thread Alexandros Karypidis
Hi, I would like to perform a synchronous in/out exchange across different camel contexts. I tried using "direct" components but those do not span contexts. The only component I've found that does that, is the "vm" component. Unfortunately, "vm" does one-way exchanges, so it's not suitable f

Re: How to use SNAPSHOTs.

2010-03-18 Thread Hadrian Zbarcea
You should not include all the jars, just the ones you need. For each component you need you have to add a in your pom(s). On Mar 16, 2010, at 7:13 AM, ankelee wrote: > > Thanks, got it working now that I actually created a pom.xml :) > > There's no way to make Maven download all of camel?

Re: ScheduledPollConsumer - poll() behavior?

2010-03-18 Thread tide08
Ok, Thanks! As I see most of the components use maxMessagesPerPoll to limit processing of messages, after they have polled? Ex: For mail component - int count = folder.getMessageCount(); might return 10,000 but it only process as per maxMessagesPerPoll - say 1000. And rest 9000 will be availabl

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2010-03-18 Thread kostabanderas
Ah, mr. Ibsen, thanks for the reply. I'm sure there are numerous ways to achieve this goal. The assembly plugin sounded like the quickest (and maybe the dirtiest, since I wanted to pack up all the dependency jars for this test project). Maybe the problem I had was more suited for the assembly plu

Re: Camel 2.3 - Default threading profile - Your view

2010-03-18 Thread Norman Maurer
+1, I really like the idea.. Bye, Norman 2010/3/18 Ashwin Karpe : > > Hi Claus, > > I do like the settings as initial values which could be potentially > overridden by the components. I also agree with the workQueue filling up > being the trigger to add more threads. > > It would be great if al

Re: ConsumerTemplate and OOM exception

2010-03-18 Thread Norman Maurer
Jira Ticket created: https://issues.apache.org/activemq/browse/CAMEL-2558 Thx, Norman 2010/3/18 Claus Ibsen : > On Thu, Mar 18, 2010 at 12:58 PM, Norman Maurer wrote: >> Hi all, >> >> I'm using the ConsumerTemplate to consume messages from a ActiceMQ >> queue (using a selector for filtering).

Re: Camel 2.3 - Default threading profile - Your view

2010-03-18 Thread Ashwin Karpe
Hi Claus, I do like the settings as initial values which could be potentially overridden by the components. I also agree with the workQueue filling up being the trigger to add more threads. It would be great if all components could uniformly apply these initial values which could ten be changed

Re: ConsumerTemplate and OOM exception

2010-03-18 Thread Norman Maurer
Hi Claus, yeah sure it would be better to have a dynamic selector but I saw no way todo this. If you have any just shout ;) I will create a Ticket for the caching stuff and in the meantime I will try to eliminate the usage of the consumerTemplate. Thx again, Bye, Norman 2010/3/18 Claus Ibsen

Re: ConsumerTemplate and OOM exception

2010-03-18 Thread Claus Ibsen
On Thu, Mar 18, 2010 at 12:58 PM, Norman Maurer wrote: > Hi all, > > I'm using the ConsumerTemplate to consume messages from a ActiceMQ > queue (using a selector for filtering). Everything seems to work > without a problem but after some days I get an OOM Exception. (To be > hornest the queue is e

ConsumerTemplate and OOM exception

2010-03-18 Thread Norman Maurer
Hi all, I'm using the ConsumerTemplate to consume messages from a ActiceMQ queue (using a selector for filtering). Everything seems to work without a problem but after some days I get an OOM Exception. (To be hornest the queue is empty all the time). When I remove the ConsumerTemplate stuff I don'

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2010-03-18 Thread Claus Ibsen
On Thu, Mar 18, 2010 at 12:33 PM, kostabanderas wrote: > > Had no luck with assembly plugin. I tried the shade plugin but gave up on it > after adding a number of dependencies and still getting runtime errors for > the missing classes. In the end, I used the combination of jar plugin to > build my

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2010-03-18 Thread kostabanderas
Had no luck with assembly plugin. I tried the shade plugin but gave up on it after adding a number of dependencies and still getting runtime errors for the missing classes. In the end, I used the combination of jar plugin to build my jar and manifest file and dependency plugin to copy required dep

Camel 2.3 - Default threading profile - Your view

2010-03-18 Thread Claus Ibsen
Hi I am posting this to user so Camel end users have a chance to make an impact on this matter. I am working on making configuring thread pools in Camel much easier. https://issues.apache.org/activemq/browse/CAMEL-1588 In light of this work we are introducing a ThreadPoolProfile which contains

Splitter strangeness

2010-03-18 Thread Kevin Jackson
Hi, I have the following camel + spring dsl: The data in the file is in the format: **START IB 1407112554 AV NYP 03/05/2010 BI Paperback AU BRAUND, HILARY IU ILLUSTRATED PD 2010/05/03 NP 48 RP 20.00 RI 20.00 RE 20.00 PU SCHOLASTIC ACADEMIC YP 2010 SR WRITING G

Re: Apache Camel Basic exam on JavaBlackBelt

2010-03-18 Thread Claus Ibsen
Hi Henryk Sounds really cool with a Camel exam at black belt. 1) Apache Camel is implementing the famous EIP patterns from the EIP book http://www.enterpriseintegrationpatterns.com/ So I believe the exam should outline this by covering maybe 6 or so common patterns - Content Based Router - Pipes

Re: Component to send message to a external program as stdin

2010-03-18 Thread Claus Ibsen
On Thu, Mar 18, 2010 at 10:17 AM, Nicolas Bouillon wrote: > Hello, > > I'm searching the following feature : > > >   >   > > > The purpose is to send the message as the standard input of the program > "/usr/bin/wc -l" and to get the standard output of the program as the > response message. > > D

Component to send message to a external program as stdin

2010-03-18 Thread Nicolas Bouillon
Hello, I'm searching the following feature : The purpose is to send the message as the standard input of the program "/usr/bin/wc -l" and to get the standard output of the program as the response message. Does that exists ? If not I believe it is quite easy to implement myself, but I d

Re: Persistent imap connections?

2010-03-18 Thread Claus Ibsen
Hi You are welcome to try to implement this feature. We love contributions http://camel.apache.org/contributing.html On Wed, Mar 17, 2010 at 5:35 PM, aronb wrote: > > Yes, Java mail supports this. It does not appear to be implemented in Camel > mail though. It would be great to be able to use a

Re: ScheduledPollConsumer - poll() behavior?

2010-03-18 Thread Claus Ibsen
On Thu, Mar 18, 2010 at 8:40 AM, tide08 wrote: > > Hi, > > I am writing custom component and I need a polling consumer but I am not > sure, if the approach I am taking is correct. I need create > scheduledPollingConsumer which polls external system to receive messages. > > Looking at other compone

Re: Multiple durable consumers on jms topic

2010-03-18 Thread Marcin Cylke
Replying to myself. Seems like the problem does not exist if I use external Activemq broker. Nevertheless it would be nice to have it working with the embedded one. Regards Marcin -- View this message in context: http://old.nabble.com/Multiple-durable-consumers-on-jms-topic-tp27930623p2794260

ScheduledPollConsumer - poll() behavior?

2010-03-18 Thread tide08
Hi, I am writing custom component and I need a polling consumer but I am not sure, if the approach I am taking is correct. I need create scheduledPollingConsumer which polls external system to receive messages. Looking at other components SchedulePollingConsumers implement poll() method which w