Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2010-12-16 Thread ext2
Yes, camel 's OSGIServiceRegistry doesn't support filter yet; If your services use same interface, I think recipient list pattern cannot be used, directly; Maybe you can write a custom processor to invoke osgi services by your self; But if you really like the bean feature supported by camel, you

Re: Cannot create JMX connector

2010-12-16 Thread Claus Ibsen
Maybe try using a different port number than the default, which may already be taken by someone else. And try Camel 2.5.0 also. On Thu, Dec 16, 2010 at 7:12 AM, tan tanb...@stee.stengg.com wrote: Btw I'm using Camel 2.4.0 -- View this message in context:

Re: Using ConsumerTemplate to fetch files.

2010-12-16 Thread Andreas A.
If I use receiveNoWait() no files will be downloaded from the ftp, maybe because the the ftp component doesn't have time to login to the ftp? -- View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3307566.html Sent from the Camel -

Re: Using ConsumerTemplate to fetch files.

2010-12-16 Thread Claus Ibsen
On Thu, Dec 16, 2010 at 9:28 AM, Andreas A. andreasasm...@gmail.com wrote: If I use receiveNoWait() no files will be downloaded from the ftp, maybe because the the ftp component doesn't have time to login to the ftp? -- Ah yeah that is correct, there is no wait :) That works better if you

Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2010-12-16 Thread klausb
Hi Sebastian, thanks for the good explaination. However I do not have a problem with a dynamic bean activation as such. I was rather asking for a method to avoid the osgi reference tag, because the wiring-component, that creates the routes from an external config should not know about the beans

Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Hi, We are delivering files to an FTP server with the URI option tempPrefix=.uploading and nothing set for the fileExists option, i.e. it will default to override of an existing file. However, if uploading, say, file.txt twice, the second upload will fail with a rename error - as the renaming

Re: Problem renaming existing file in FTP

2010-12-16 Thread Claus Ibsen
Hi Try with a later release as the FTP component have been improved on the times. I think we have fixes something similar like this in a later release. On Thu, Dec 16, 2010 at 11:05 AM, mikaelfj mikae...@gmail.com wrote: Hi, We are delivering files to an FTP server with the URI option

Re: Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Hi - I looked through the release notes but couldn't see this mentioned specifically - but I will give a later release a go - thanks /Mikael -- View this message in context: http://camel.465427.n5.nabble.com/Problem-renaming-existing-file-in-FTP-tp3307670p3307746.html Sent from the Camel -

Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2010-12-16 Thread ext2
Camel Osgi registry doesn't support filter for services; You'd better write your own processor to locate osgi services; it's not so sophisticated , just do some reflecting works; But if you do wish to use camel bean's features, the only way I know is change the source code of CamelOsgiRegistry

Re: Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Just tried with 2.4 and 2.5 - they both seem to have the same problem as 2.2. At the second upload of the file to the FTP server, they throw this exception: org.apache.camel.component.file.GenericFileOperationFailedException, message:Cannot rename file from: rename/.uploadingTest.REN to:

Re: Problem renaming existing file in FTP

2010-12-16 Thread Claus Ibsen
On Thu, Dec 16, 2010 at 12:49 PM, mikaelfj mikae...@gmail.com wrote: Just tried with 2.4 and 2.5 - they both seem to have the same problem as 2.2. At the second upload of the file to the FTP server, they throw this exception:

Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2010-12-16 Thread Willem Jiang
Yes, Current Camel OSGi registry just grab the service from OSGi service registry, it doesn't support the filter. I think this feature is easy to add and please don't hesitate to contribute your patch. On 12/16/10 7:25 PM, ext2 wrote: Camel Osgi registry doesn't support filter for services;

Re: Error in wiki about pollEnrich?

2010-12-16 Thread Andreas A.
Hi Claus You can use a recipient list and construct a dynamic uri with the file name you want to poll. And you can then provide an aggregration strategy. For example the UseLatestAggregationStrategy. Can you elaborate on how this is done. I can't quite put the pieces together to create what

Re: CXF+REST+Camel Routes

2010-12-16 Thread Willem Jiang
Hi, You need to set the cxfrs endpoint's service class with a class name instead of interface name. As you know JAXRS server need to instantiate the resource class when it server the request. Please change your camel route like this. from

Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2010-12-16 Thread ext2
Hi, Willem Jiang: I think maybe the feature is not very ease to add; Although we can temporary change the code of OSGIServiceRegistry to enable osgi service filter. But the solution has such disadvantages: 1) the bean-name will be ugly , because it contains not only the

The CAMEL FTP connector documentation

2010-12-16 Thread S. Ali Tokmen
Hello On the http://camel.apache.org/ftp2.html documentation, I read: The *username* is currently only possible to provide in the hostname parameter. I've tried to give the username as URI option (ftp://129.183.129.126?username=camelpassword=camelpass) and it does work. I even have the

Extracting request IP in Camel CXF

2010-12-16 Thread goels...@yahoo.com
Hi, When I used a standalone CXF web service, I used to be able to extract the remote IP address in my Impl class. CXF would inject a WebServiceContext object in my Impl class and I would have the class as follows: code public class MyWSImpl implements IMyWS { @Resource private

Re: Problem renaming existing file in FTP

2010-12-16 Thread Claus Ibsen
I have created some unit tests and cannot reproduce this issue. http://svn.apache.org/viewvc?view=revisionrevision=1050041 Camel will delete any existing files. There is even an option eagerDeleteTargetFile you can decide to do this eager (= asap) or later (after writing the temporary file).

Re: How set the body item

2010-12-16 Thread Claus Ibsen
Use Java code, for example invoke a bean or Processor where you can reset the map. Or use some of the scripting languages if you want to do it from XML http://camel.apache.org/languages.html for example Groovy, JavaScript etc. On Fri, Dec 17, 2010 at 4:05 AM, Bingliu liubing1...@gmail.com

Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)

2010-12-16 Thread sharma_arun_se
Hi All, Below is the solution that I used to integrate JAXB with apache camel and to resolve class-loading problem in OSGI: 1. I have written separate bean class to resolve Jaxb-Context something like: public class JAXBContextResolver { private static Logger log =

Re: The CAMEL FTP connector documentation

2010-12-16 Thread davsclaus
Thanks. I have remove it from the docu. -- View this message in context: http://camel.465427.n5.nabble.com/The-CAMEL-FTP-connector-documentation-tp3307915p3308997.html Sent from the Camel - Users mailing list archive at Nabble.com.