Re: Component for SSH CLI

2011-11-25 Thread Claus Ibsen
Apache Mina project has a SSH sub project. Its used by Apache Karaf I think. On Thu, Nov 24, 2011 at 11:15 AM, diwakar wrote: > Hi, > >                 Is there a Camel component for SSH command line interface. > Please let me know your comment. > > With Best Regards, > Diwakar > > > -- > View t

Re: How do i use a JMS Consumer in Camel DSL?

2011-11-25 Thread Ashish
Hi, I am new to servicemix. trying to write a simple example in which a file contents are copied from a directory to a jms queue which in turn transfers it to another directory. The xml file is as follows:- http://www.springframework.org/schema/beans"; xmlns:xsi=

Re: Dynamic Consumers

2011-11-25 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Thu, Nov 24, 2011 at 4:10 PM, suman wrote: > Hello All, > I have a question regarding dymaic uri inside toF() DSL > Given below is my route > >  from("direct:bootstraproute") > .setHeader(Exchange.HTTP_METHOD,constant

Re: Component for SSH CLI

2011-11-25 Thread Guillaume Nodet
Yes, Mina SSHD could be used if needed, but could you elaborate a bit more, I'm not really sure to understand what you have in mind. You want a camel component that would connect through SSH and execute commands remotely ? Maybe that could be a camel-exec enhancement somehow. On Fri, Nov 25, 2011

Re: Component for SSH CLI

2011-11-25 Thread diwakar
Hi, Thanks for the reply. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Component-for-SSH-CLI-tp5019772p5022074.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Component for SSH CLI

2011-11-25 Thread diwakar
Hi, We need to execute "ls" on one of the servers and then retrieve few files with SFTP. Exec is an option, but the process is about 1Gb in size and doing too many forks (with Runtim.exec())is not a good idea. With Best Regards, Diwakar -- View this message in context: http:

Single request with multiple replies over TCP

2011-11-25 Thread jonv
Hello all, Im new to camel and currently doing an evaluation exercise! What Im trying to achieve is to place camel in the middle of two apps. The apps use XML over TCP to communicate over one connection. The message pattern is kinda pub/sub or single request with multiple replies. The msgs flows

Error handling: Camel (or EIP) vs Pojo

2011-11-25 Thread diwakar
Hi, Very basic doubt. Isn't it difficult to do proper error handling with the EIP based approach? It is much simpler with Pojo interfaces. Could Camel have been a bunch of libraries? (Except for asynch support). With pure Java for controling t

Re: Component for SSH CLI

2011-11-25 Thread Claus Ibsen
Hi There is a SFTP component with Camel? Can you just use that? As it can scan directories for files, and download the files. http://camel.apache.org/ftp2 On Fri, Nov 25, 2011 at 9:38 AM, diwakar wrote: > Hi, > >                  We need to execute "ls" on one of the servers and then > retrieve

RE: Selective Multicast

2011-11-25 Thread Narita Bagchi
This worked for me - from("file://d://log//camel").convertBodyTo(String.class) .multicast().to("seda:a", "seda:b"); from("seda:a") .process(new MutlicastRecoveryProcessor("output1")) .choice() .when(header("foo").isEqualTo("one")) .to("log:org.apache.camel.Dea

Re: How do i use a JMS Consumer in Camel DSL?

2011-11-25 Thread Freeman Fang
Hi, My comment inline On 2011-11-24, at 下午11:05, Ashish wrote: Hi, I am new to servicemix. trying to write a simple example in which a file contents are copied from a directory to a jms queue which in turn transfers it to another directory. The xml file is as follows:- http://www.springf

Re: Error handling: Camel (or EIP) vs Pojo

2011-11-25 Thread Alistair Young
er of retries: http://codebrane.com/blog/wp-content/uploads/2011/11/2025-082741.jpg Alistair -- mov eax,1 mov ebx,0 int 80 On 25 Nov 2011, at 08:34, diwakar wrote: > Hi, > > Very basic doubt. > Isn't it difficult to do proper error handlin

Re: Component for SSH CLI

2011-11-25 Thread diwakar
Hi, >> As it can scan directories for files, and download the file We will try this. But this was just one example of SSH usage. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Component-for-SSH-CLI-tp5019772p502233

Re: Thread pool for components in Camel

2011-11-25 Thread diwakar
Hi, In Servicemix/JBI thread pools by are there by default (at component level). Why isn't the same approach taken for Camel? In Camel thread (/async) has to be configured explicitly in the route. Please let me know your comment. With Best Regards,

Re: How to get full control over threads used by JMS/ActiveMQ component?

2011-11-25 Thread Joshua Watkins
I was able to limit the number of threads by setting the consumerType to simple and the taskExecutor to a spring ThreadPoolTaskExecutor bean that I created. I didn't use the ThreadPoolProfile class. I hope this helps. On 24/11/2011 22:19, "Jason Dillon" wrote: >rType(ConsumerType.Simple); >Acti

Re: Thread pool for components in Camel

2011-11-25 Thread Claus Ibsen
On Fri, Nov 25, 2011 at 10:40 AM, diwakar wrote: > Hi, > >                In Servicemix/JBI thread pools by are there by default (at > component level). >                Why isn't the same approach taken for Camel? In Camel thread > (/async) has to be configured explicitly in the route. >        

Re: Get activemq message

2011-11-25 Thread davsclaus
You can use pollEnrich instead of the processor in the Camel DSL. http://camel.apache.org/content-enricher.html And the problem you have is that you create a new consumer template for *each* message. Do not do this. But create the template once. Read this FAQ http://camel.apache.org/why-does-camel

Re: HTTP Basic authenticaiton on CxfEndpoint

2011-11-25 Thread Willem Jiang
Are you using the same cxfEndpoint ? If so, You can set the AuthorizationPolicy by using the conduit[1]. If not, I'm afraid you have to use other camel component to do the job. [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport%28includingSSLsupport

Re: Testing an http component

2011-11-25 Thread Willem Jiang
Thanks for sharing it with us. If you are using camel-http4 component, you don't need to start a real Jetty server for it. You can find more information about it by checking out the unites of the camel-http4[1]. [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-http4/src/test

Re: connecting to new jms implementation

2011-11-25 Thread saiya-jin
Hello, I tried to create as simple component as possible that represents the case I need to implement (I am using provided ActiveMQ broker to post messages that are consumed by my Component). When I try to launch simple test that sends 1 message to broker via ProducerTemplate, but whole setup is b

Re: connecting to new jms implementation

2011-11-25 Thread Christian Schneider
Hi, I have not reviewed the whole code but at least one thing is wrong. To use your component you should do: my is the id of your component. Camel finds it by looking for a spring bean with that id. Of course you could also use the camel bean component but then you would not write a componen

Re: Dynamic Consumers

2011-11-25 Thread Willem Jiang
You can take a look at recipient-list which can take the message header as a parameter to build up the endpoint uri. [1]http://camel.apache.org/recipient-list.html On Thu Nov 24 23:10:10 2011, suman wrote: Hello All, I have a question regarding dymaic uri inside toF() DSL Given below is my rou

using vm: with different camelContexts and property parser

2011-11-25 Thread kudrevatykh
Hello, today I tried to use properties as defined in examples. And found that with vm: uri when sender uses one context and receiver another, property searched in sender context, instead of receiver, where route is defined. When using activemq anything is fine and properties searched in receiver. c

Re: connecting to new jms implementation

2011-11-25 Thread saiya-jin
Thank You a lot, it helped me to move forward. Methods at my endpoint are called, but unfortunately process(Exchange exchange) on my Producer is not called when message is sent, and thus communication line is not finished. Methods like doStart() from DefaultConsumer are. Is the endpoint name in UR

Re: using vm: with different camelContexts and property parser

2011-11-25 Thread Claus Ibsen
Hi Can you paste a sample of the routes you use? On Fri, Nov 25, 2011 at 2:03 PM, kudrevatykh wrote: > Hello, today I tried to use properties as defined in examples. > And found that with vm: uri when sender uses one context and receiver > another, property searched in sender context, instead

Re: Single request with multiple replies over TCP

2011-11-25 Thread Ioannis Canellos
If you are expecting one message for each response, then I guess that you can get this message back by having the sync option set to true. However, I think that you mentioned multiple responses per request. I think that you could easily solve this one by implementing the appropriate filter, that wo

Re: using vm: with different camelContexts and property parser

2011-11-25 Thread Björn Bength
Hi a theory: when camel searches for properties, (anything in it's "registry") it looks in Exchange.getCamelContext... and as the exchange (when using the vm: component) is created in one camelcontext and sent by reference to another camel context in the same jvm, the second context receives the

Re: using vm: with different camelContexts and property parser

2011-11-25 Thread Claus Ibsen
2011/11/25 Björn Bength : > Hi > > a theory: when camel searches for properties, (anything in it's > "registry")  it looks in Exchange.getCamelContext... > and as the exchange (when using the vm: component) is created in one > camelcontext and sent by reference to another camel context in the > sam

Re: connecting to new jms implementation

2011-11-25 Thread saiya-jin
never mind last post, it was a misfired message via ProducerTemplate. Producer part works, now I'll take a look at Consumer part, which requires polling and firing messages into Camel. Thanx so far! ;) -- View this message in context: http://camel.465427.n5.nabble.com/connecting-to-new-jms-imple

Re: How to create a Proxy per request

2011-11-25 Thread KingAndrew
Hi All, I'm sooo close. :-) Here is my code /* * It enables us to switch between iteamone corbaStubs and eagle camelProxys */ public Object getProxy(java.lang.Object impl, Class interfaceToImplement){ CamelServiceExporter remoteExpt = new CamelServiceExporter (); remoteExpt.setService(impl); r

Re: Single request with multiple replies over TCP

2011-11-25 Thread jonv
Thanks Ioannis however the 'responses' are never ending. Which is why I mentioned its like pub/sub. The two applications I have use an 'always open' TCP connection where the in and out messages streams are effectively 'sessionless'. E.g. TCP Client opens connection with TCP Sever Listener . Clien

Re: CSV to database

2011-11-25 Thread Idriss
Of course. you find in attchement the source code for my example. http://camel.465427.n5.nabble.com/file/n5023529/camel-example-etl2.zip camel-example-etl2.zip Best, -- View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5023529.html Sent from the Camel -

Supply custom parameters to bean

2011-11-25 Thread Xenofon Papadopoulos
Is it possible to supply custom parameters to a bean used in several routes? For example something like:

Remote Messaging using CAMEL

2011-11-25 Thread newbiee
CAMEL Community: I have raised this question earlier also and got some directions which are great, but I am still stuck at a critical step and need your help in solving it. I am new to CAMEL and learning it. I have a project which I have explained in my other post but now I am focusing on where

Remote Messaging Using CAMEL

2011-11-25 Thread newbiee
CAMEL Community: I have raised this question earlier also and got some directions which are great, but I am still stuck at a critical step and need your help in solving it. I am new to CAMEL and learning it. I have a project which I have explained in my other post but now I am focusing on where

Configuration for Apache camel...

2011-11-25 Thread atiato
Dears , I would like to know if there is special configuration for camel if we are having heavy load , let us assume the following : 1- have Mina TCP endpoint . 2- from TCP I use JAXB to transform XML coming into Object. 3- call the Web service using CXF endpoint. 4- convert response into Object .

Re: Configuration for Apache camel...

2011-11-25 Thread Björn Bength
Hi, depends on what you do with your objects.. if all transaction payload are very, very large objects coming in at the same time and/or you store them in memory it will eventually leak yes. If you do normal sensible processing, and your load is spread out over the day, one million transactions a

Re: How to get full control over threads used by JMS/ActiveMQ component?

2011-11-25 Thread Jason Dillon
Thanks, that seems to do it :-) --jason On Nov 25, 2011, at 1:57 AM, Joshua Watkins wrote: > I was able to limit the number of threads by setting the consumerType to > simple and the taskExecutor to a spring ThreadPoolTaskExecutor > bean that I created. I didn't use the ThreadPoolProfile class.

Re: Supply custom parameters to bean

2011-11-25 Thread Claus Ibsen
On Fri, Nov 25, 2011 at 6:35 PM, Xenofon Papadopoulos wrote: > Is it possible to supply custom parameters to a bean used in several routes? > For example something like: > > >   >   >   >   http://camel.apache.org/bean-binding.html For older Camel releases you cannot easily do this. > Thanks