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 getting this exception
javax.mail.MessagingException: * BYE Connection refused;
nested exception is:
com.sun.mail.iap.ConnectionException: * BYE Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:569)
at javax.mail.Service.connect(Service.java:288)
at
org.apache.camel.component.mail.MailConsumer.ensureIsConnected(MailConsumer.java:325)
at
org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:88)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
--
View this message in context:
http://camel.465427.n5.nabble.com/email-listener-tp4429925p4442825.html
Sent from the Camel - Users mailing list archive at Nabble.com.