Re: failed to create route

2011-05-31 Thread Christian Müller
Your endpoint should looks like the following: from("imaps:// imap.gmail.com?password=&username=myuse...@gmail.com&delete=false&unseen=true&consumer.delay=6

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Thanks Claus. Would you be able to provide some snippet code as an e.g. We are using spring config. I believe you are referring to this? http://camel.apache.org/recipientlist-annotation.html ** “CONFIDEN

Re: date functions/URL params for http endpoint

2011-05-31 Thread Claus Ibsen
Hi See this FAQ about dynamic To in Camel http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html You need to use the recipient list EIP pattern. And for computing the URI, you can use a plain Java bean for that. Sometimes that easier. Especially if you need to calculate -30 days from today.

Re: failed to create route

2011-05-31 Thread Claus Ibsen
Hi Check the mail component wiki page more careful http://camel.apache.org/mail.html If you look at the 2 options it complain about, and look in the options table you get your answer why it fails. On Tue, May 31, 2011 at 10:06 PM, fachhoch wrote: > Ok I am using camel-mail-2.7.1 > platform wi

async send with preserved order

2011-05-31 Thread Jim Newsham
Is it possible to send asynchronously while preserving order? For example: for (int i = 0; i <= COUNT; i++) { Object body = Integer.valueOf(i); producerTemplate.asyncCallbackRequestBody(URL, body, callback); } Assuming that "URL" is a FIFO queue, is there some way f

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
When we defined the processor as mentioned above: public class MyProcessor implements Processor { ProducerTemplate producer; .. public void process(Exchange exchange) { URI uri = ... (dynamic params used) producer.send(uri, exchange); } in spring xml:

Re: failed to create route

2011-05-31 Thread Donald Whytock
Try using "myuserid" instead of "myuse...@gmail.com". Last I tried, mail endpoints don't like full email addresses as user IDs. Don On Tue, May 31, 2011 at 4:06 PM, fachhoch wrote: > Ok I am using camel-mail-2.7.1 > platform windows > server running on jetty > java 1.6 > I am getting parameter

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
You can add an ID to your route and start it and stop it using the ID. Your route would be from(endpoint) .routeID(idString) .process(whatever); You can then use camelcontext.stopRoute(idString) to stop the route and camelcontext.startRoute(idString) to re-start it. On Tue, May 31, 2011 at

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
If you're committed to writing a Processor, you can perhaps use ProducerTemplate, which lets you send an Exchange to a String URI. public class FooSearch implements Processor { ProducerTemplate producer; public FooSearch(CamelContext context) { producer = context.createProducerTemplate(

Re: failed to create route

2011-05-31 Thread fachhoch
Ok I am using camel-mail-2.7.1 platform windows server running on jetty java 1.6 I am getting parameter not found exception I am trying out the configration specified in the example . here is my router configration from("imaps://imap.gmail.com?password=&username=myuse...@gmail.com&del

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Is there a way to stop/re-start routes without needing the web container re-start? If yes, please provide any sample config/examples that may help. ** “CONFIDENTIALITY NOTICE: The information transmitte

Re: failed to create route

2011-05-31 Thread Christian Müller
Please have a look at [1] which information you should provide to get help (Which version of Camel do you use? How looks your route? ...). [1] http://camel.apache.org/support.html#Support-Howtogethelp Best, Christian On Tue, May 31, 2011 at 9:39 PM, fachhoch wrote: > I am new bee trying to use

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
Donald raised an important point, need to make sure the start date is computed dynamically (using the Simple EL does the trick). The approach that I mentioned to you will also only work if you can restart the route every time the number of days changes -- what is your case there? Thanks. On Tue, M

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Any sample example of the spring config as well as sample java class would be appreciated. Am a newbie to Camel so trying to figure out my way with this. - Original Message - From: "Donald Whytock" To: users@camel.apache.org Sent: Tuesday, May 31, 2011 12:49:00 PM GMT -08:00 US/Canada P

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
toF isn't runtime-dynamic, right? It's gonna take the startdate and enddate when the route is built and make a static endpoint? If you need the endpoint to change at runtime, you'll need to use some sort of placeholder in the route that you can change. Don On Tue, May 31, 2011 at 3:31 PM, Ferna

Re: Camel AWS component

2011-05-31 Thread Christian Müller
Yeah, we love contributions. So, feel free the create the JIRA tickets and attache the patches. I recommend to open a separate JIRA ticket for each added functionality (one for SES and one for the S3 improvement). Best, Christian On Tue, May 31, 2011 at 5:04 PM, Jason Whaley wrote: > abashev ha

failed to create route

2011-05-31 Thread fachhoch
I am new bee trying to use camel . I am trying an email listner I am failing with this exception Failed to create route route1: Route[[From[imaps://imap.gmail.com?password=x&usernam... because of Failed to resolve endpoint: imaps://imap.gmail.com?consumer.delay=6&deleteProcessedMessages=f

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
You only really need the route builder to be configured once, don't worry about it. On Tue, May 31, 2011 at 4:19 PM, Bharat Goyal wrote: > Thanks for your response. I assume this can be done in multiple ways. > However, with the way you are suggesting, wouldnt the "configure" method of > concret

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Thanks for your response. I assume this can be done in multiple ways. However, with the way you are suggesting, wouldnt the "configure" method of concrete RouteBuilder class be called just once? am new to Camel, so any examples of spring config as well as the java class method would be helpful.

Re: Issue unmarshalling Fixed Length message date

2011-05-31 Thread Christian Müller
If you use the BindyFixedLengthDataFormat, the pos attribute (lowered by one) describes the start position of this field and the length attribute the length of the attribute. This means for this example, because the first field has a length of 15 characters, it must be annotated with pos=1, length=

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
Bharat, You can create a property (with get/set) methods in your route builder and initialize it in your beans.xml file: Does that work for you? Fernando On Tue, May 31, 2011 at 3:19 PM, Bharat Goyal wrote: > Yes, startDate is the current date and I can use ${date:now:dd/MMM/} > > F

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Yes, startDate is the current date and I can use ${date:now:dd/MMM/} For end date, it will be for e.g. start date - 30 days (but 30 will be read from a property file) ** “CONFIDENTIALITY NOTICE: The i

Re: email listener

2011-05-31 Thread fachhoch
can you please help me write this in camel public class GmailReader{ public static void main(String args[]) throws IOException { Properties props = System.getProperties(); props.setProperty("mail.store.protocol", "imaps"); try { Sessio

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
You mean you need to be able to get the current date (for startDate) and a date in a configuration (endDate) in your route, right? On Tue, May 31, 2011 at 3:13 PM, Bharat Goyal wrote: > Hello, > We have the requirement to pull data from a http URL on specific dates of > the month. > > Requiremen

date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Hello, We have the requirement to pull data from a http URL on specific dates of the month. Requirements: 1. There are 2 URL params in the http call, startDate and endDate that takes date expr in dd/MMM/ (e.g. 05/JAN/2011) and are used to fetch data between those 2 dates. 2. Our camel-c

date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Hello, We have the requirement to pull data from a http URL on specific dates of the month. Requirements: 1. There are 2 URL params in the http call, startDate and endDate that takes date expr in dd/MMM/ (e.g. 05/JAN/2011) and are used to fetch data between those 2 dates. 2. Our camel-cron

Re: email listener

2011-05-31 Thread fachhoch
may be I am missing something with the configration can please give me an example of an email address with yahoo or gmail -- View this message in context: http://camel.465427.n5.nabble.com/email-listener-tp4429925p4442836.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: email listener

2011-05-31 Thread fachhoch
this is the code of my RouteBuilder public void configure() { from("imap://myemailusernam@wholehostname?password=mypassword"). choice().when(header("subject").contains("Test-Camel")). to("jms://hhs.gov.email.queue").bean(new SomeBean()); } Now I am

Re: email listener

2011-05-31 Thread fachhoch
They gave me the mail server address , I can send email , but trying to read email I get connection refused exception. .I tried telnet to the address they gave and I get connection refused ,does this mean there is a problem with mailserver connection ?,my outllok connects well also I have thunde

Re: File Poller

2011-05-31 Thread sumatheja
Thanks Claus its working fine now -- View this message in context: http://camel.465427.n5.nabble.com/File-Poller-tp4435442p4442652.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: email listener

2011-05-31 Thread Taariq Levack
Did you ask your admin for the correct settings? Can you send an email using those settings any other way, like some standard java mail stuff you found on the web? Taariq On 31 May 2011, at 4:36 PM, fachhoch wrote: > I tried imap its not working, I get the same connection refused exception ,

Re: File Poller

2011-05-31 Thread Claus Ibsen
On Tue, May 31, 2011 at 5:18 PM, sumatheja wrote: > Hi Claus, >             Thanks for the help. But when i try to run my code its throwing > the following exception > > Exception in thread "main" 2011-05-31 20:44:29,313 [Thread-1       ] INFO > MainSupport$HangupInterceptor  - Received hang up -

Re: File Poller

2011-05-31 Thread sumatheja
Hi Claus, Thanks for the help. But when i try to run my code its throwing the following exception Exception in thread "main" 2011-05-31 20:44:29,313 [Thread-1 ] INFO MainSupport$HangupInterceptor - Received hang up - stopping the main instance. org.apache.camel.CamelException

Re: Camel AWS component

2011-05-31 Thread Jason Whaley
abashev had a backport from SVN waiting in a pull request that I'm going to merge in to that github repo that looks like it'll put it up to date with trunk. We can probably get a diff of changes to patch to camel's SVN trunk from that. --Whaley On Tue, May 31, 2011 at 8:55 AM, Claus Ibsen wrot

Re: Camel AWS component

2011-05-31 Thread Claus Ibsen
Hi Thats cool stuff. We love contributions at Apache. However we cannot accept pull requests and whatnot from github. Patches to Apache must be attached to JIRA tickets and granted license to Apache. There is some details here http://camel.apache.org/contributing.html As the AWS stuff from gith

Re: Camel AWS component

2011-05-31 Thread Jason Whaley
I just noticed this (and the previous pull request from earlier). Though I think most of what was in that github repo is already in camel's SVN trunk. We can merge that in to github to perhaps be patched in to trunk later? I'll try to take a look today. --Whaley On Mon, May 30, 2011 at 2:37 AM

Re: email listener

2011-05-31 Thread fachhoch
I tried imap its not working, I get the same connection refused exception , Is there any tool I can use to test the connection ? -- View this message in context: http://camel.465427.n5.nabble.com/email-listener-tp4429925p4442180.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: Loop usage

2011-05-31 Thread Claus Ibsen
Hi I have created a JIRA ticket https://issues.apache.org/jira/browse/CAMEL-4033 On Sat, May 28, 2011 at 3:25 PM, Claus Ibsen wrote: > Hi > > Fell free to create a JIRA ticket for an improvement to the loop DSL > so we can add an option to control if looping should be from > - a copy of the inpu

Re: Unit test camel with activeMQ

2011-05-31 Thread Ashwin Karpe
Hi, To your second question about whether AMQ should be started, the answer is yes. You may do so using Spring to fire up a broker of using API's to create an embedded broker instance. Cheers, Ashwin... - - Ashwin Karpe Apache Camel C

Re: Could you please accept my previous message to the board?

2011-05-31 Thread Ashwin Karpe
Hi, Please see my response to your original message. Cheers, Ashwin... - - Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opens

Re: MEP.InOptionalOut correct behavior for exchange bodies?

2011-05-31 Thread Ashwin Karpe
Hi, I took a look at your requirement and do not quite get why the need for ExchangePattern.InOptionalOut. A standard In-Out can solve this requirement just as easily. If your requirement needs you to send a transformed message to a different destination along the way while processing the origina

Re: Persisting messages in routes

2011-05-31 Thread Alistair Young
thanks Ashwin Alistair -- mov eax,1 mov ebx,0 int 80h On 31 May 2011, at 14:03, Ashwin Karpe wrote: > Hi, > > You will need to make your consumers transactional so that messages are > restored back on the Topic if the route fails to process the message due to > shutdown, failures etc. >

Re: Persisting messages in routes

2011-05-31 Thread Ashwin Karpe
Hi, You will need to make your consumers transactional so that messages are restored back on the Topic if the route fails to process the message due to shutdown, failures etc. Please check out http://camel.apache.org/transactional-client.html http://camel.apache.org/transactional-client.html Ch

Persisting messages in routes

2011-05-31 Thread Alistair Young
I have a bit of a problem where persistent messages are lost when Camel routes are used. If I send a persistent message to an ActiveMQ topic and read it using a durable topic subscriber, the messages survive a server restart if the subscriber hasn't read them. If I route those persistent message