I want an email listener , ie whenever a new email arrives to a
particular inbox with a particular subject I want a jms message to be sent
to my listener , can camel do this ?
--
View this message in context:
http://camel.465427.n5.nabble.com/email-listener-tp4429925p4429925.html
Sent
I tried based on your suggestions I got ConnectException connection refused
:connect
java.net.ConnectException: Connection refused: connect
I am sure email address is correct and password is correct , Please tell
me what could cause connection problems and
I am testing this with my work emai
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
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
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
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.
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
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
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
I want to check a table data in my database and if it meets some condtion
then start some processing , how to do this in camel , currently I have a
quartz job running every 5 minutes to check this table and if the data
meets my condition I do some processing , I want to do this in camel pleas
some of my tables are not mapped as entities and this table I have to query
is not mapped I don't want to map it, I want camel to call my predicate if
the predicate returns true call some processor , and check the predicate
every 5 minutes ,
--
View this message in context:
http://camel.4
I want to check a folder in a remote server using ftp and if it has any
filescall my processor with the files passed to my processor so that I
can read them.Please suggest me how .
--
View this message in context:
http://camel.465427.n5.nabble.com/check-remote-folder-using-ftp-tp4473453
I am trying to read files from a remote folder using sftp, I added a
processor to my consumer.
The processor is getting called based on number of files , If the remote
folder has 4 files the processor is called 4 times each time with a file , I
want the processor to be called once with all the fi
I am getting this error
org.apache.camel.component.file.GenericFileOperationFailedException:
Cannot change directory to: NEW_NEAR_FILES
at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:408)
at
org.apache.camel.component.file.remote.
Please tell me on how to get all files in my processor
My processor gets exchange but I have no clue how to get all files from
exchange are there any examples?
--
View this message in context:
http://camel.465427.n5.nabble.com/read-all-files-in-folder-tp4474104p4476258.html
Sent from th
Yes I used aggregator it gets valled once that uis good , what I mean is in
my proccesor from exchange what should I call to get all files
here is my code
public static class FileProcessor implements Processor {
@Override
public void process(Exchange excha
Thanks for your reply I want to get them as files(java.io.File) not as
Strings I need each file name and its content .
--
View this message in context:
http://camel.465427.n5.nabble.com/read-all-files-in-folder-tp4474104p4476750.html
Sent from the Camel - Users mailing list archive at Nabble.c
I tried your code It did not work
here is my actual code
public class MyRouteBuilder extends RouteBuilder {
public void configure() {
from("file://e:/u01/oracle/NEW_NEAR_FILES/?delete=true&delay=6")
.convertBodyTo(File.class)
/
I tried with .convertBodyTo(File.class) , I was able to get filename but
when I tried to read the file to byte array I got IO exceptions , file does
not exsists , obviously because I said the delete option to true , please
advice me how to get file content as byte array ?
--
View this messa
I changed my router to use and removed delete , I was hoping at this time I
will be able to read file bytes in my processor but its failing with
java.io.FileNotFoundException
public class MyRouteBuilder extends RouteBuilder {
public void configure() {
from("file://e:/u01/orac
can I say convertBodyTo(new HashMap()) and in this hashmap I want to put the
filename and its content
can I do this ?
--
View this message in context:
http://camel.465427.n5.nabble.com/read-all-files-in-folder-tp4474104p4477436.html
Sent from the Camel - Users mailing list archive at Nabble
can adding a processor to from will help ?
I did not try but want to know ur opinion
I saw this in http://camel.apache.org/message-translator.html
from("direct:start").process(new Processor() {
public void process(Exchange exchange) {
Message in = exchange.getIn();
in.setB
thank u very much , I also tried a simple approach it worked but not sure if
it is right please tell me if it is right , what I did is call
convertBodyTo(String.class) and I noticed exchange has headers and it had
file path filename and some other values so I just called get header
Exchange.F
I have my route with endpoint to jms queue,
here
from("file://e:/u01/oracle/NEW_NEAR_FILES/?delay=6&move=../PROCESSED_NEAR_FILES")
.convertBodyTo(String.class)
.aggregate(constant(true)).completionSize(10).completionTimeout(1L).groupExchanges()
I want to embed camel web console into my app ,are there any examples ?,I
tried adding
org.apache.camel
camel-web
2.7.1
war
runtime
to my pom , it did not work ,do I need to add anything in my web.xml ?
--
View this message in context:
Atleast please guide how to embed apache-web-console in my app.
I tried adding the camel war dependency in my pom, maven added everything
from the camelwar to my war when I tried accessing local host:8080 I got
tomcat home page please guide how to integrate camel web console in my app
--
View this
Thanks for the reply ,I emebdded camel war to my war project which I deploy
using jetty-maven-plugin
,context root for my war is artms ,please tell me how to access camel
console , I mean what is the url
my jetty runs on 8080 so I acces my application as localhost:8080/artms
what should
I dont want both the apps to be independent , I want to have camel web
console in my app as a web resource, I tried
http://localhost:8080/artms/routes url it did not work ,
so to test it in simple way I created a a wicket quickstart project added
camel-web-console as dependency.
this project i
It worked well in the test application, I tried in my actual application It
failed with no such method error, because camel and my application both
had the same jar with different version , so what is the solution for this
? I mean both wars might have same jars with differnt version and
ob
My RouteBuilder are written in groovy and are loaded as spring beans
using lang tag
if I update the groovy file spring reloads the file .So when my
RouteBuilder is updated sopring will update the bean but hat baout camle
will it reload the RouteBuilder ?
what option I have to
ok in other words If my routebuilder is written in groovy using camel dsl
,will I be able to make changes and reload the routebuilder at runtime ?
--
View this message in context:
http://camel.465427.n5.nabble.com/reload-routebuilder-at-runtime-tp4521292p4522087.html
Sent from the Camel - Users
if I seperate this into two wars , ie one for my aplication and other camel
war , how can camel war update routesfrom my application war ?
--
View this message in context:
http://camel.465427.n5.nabble.com/example-app-to-embed-camel-web-console-tp4512075p4531839.html
Sent from the Camel - Us
please tell me how to update a route using camel context I saw the api it
has several methods , you have an example on updating a route at runtime ,
my camel context is started by springand routes registered
here is my configration
http://camel.apache.org/schema/spring";>
gov.h
what's the route id in my case? how can I find it ?
--
View this message in context:
http://camel.465427.n5.nabble.com/reload-routebuilder-at-runtime-tp4521292p4531888.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have new user registration where I have to verify the email address given
by user is the one he uses , ie my app has to send him an email to the given
email address and I should get back a reply , something like subscription to
post into camel forums ? is there anything camel which I can use ?
I saw the code fo DefaultCamelContext and I think I can use the method
public synchronized void addRouteDefinitions(Collection
routeDefinitions) throws Exception {
for (RouteDefinition routeDefinition : routeDefinitions) {
removeRouteDefinition(routeDefinition);
}
in other words is there a camel component in camel which does email
verification or I have to do have a flag in my database for email
verification, initially when users registers I set it to pending and
application will send out email to this user and when users replies to this
email I update the
I call a webservice for my application for a user action, I have spring,cxf
client , I use this client to call the webservice, now our requirement added
new webservice call , so I have to call two webservices , the old one and
the new one, my initial plan is in a method I will call each webse
The change is very simple
here the code from S3consumer
first change is to the S3Configuration add new field String prefix;
second update the above method to call setPrefix on the ListObjectsRequest
if prefix is present
--
View this message in context:
http://camel.465427.n5.nabble.com
We have several java application tied using single sign on , each application
has its own database.we are using cxf and rest services for any information
one app needs from other .Using cxf the problem is web service can be
accessed from anywhere and we have to add security and any app which wants
40 matches
Mail list logo