L.S.,
Your xbean.xml contains endpoint configuration for more than one
component. You should create two SU, one for each component, and
separate the file: and mail: endpoints that way. Also, make sure that
both SU are added to the SA (add the dependency in the pom.xml).
Regards,
Gert
javahollic wrote:
Hi,
I've spent a good few hours trying to get a POP polling working, but no
success so far. It could be I have the wrong end of the stick with this
test and that I should be trying a
http://cwiki.apache.org/SM/creating-a-protocol-bridge.html protocol bridge
instead.
I've setup my servicemix 3.3 for DEBUG, I see plenty of DEBUG logs, non
relate to mail polling.
I've gone through the tutorial and read the
http://cwiki.apache.org/SM/servicemix-mail.html servicemix-mail page. As
far as I can tell my config is valid, but is obviously not.
My SU depends on servicemix-mail 2008.01, the SA builds, It deploys
seemingly correctly, but no polling occurs. I know the localhost pop server
is valid, I've been using the same account for other things. I see no
attempt to even connect in /var/log/mail.info
If what I'm attempting to is just plain wrong, pointers gratefully accepted.
I have the servicemix-mail 2008.01 branch in Eclipse built and installed,
but it doesnt do me much good if its not invoked. Next stop would have to
be a line by line debug of servicemix itself to figure out why the launch of
the mail poller isn't working 8-O
<beans xmlns:mail="http://servicemix.apache.org/mail/1.0"
xmlns:test="http://www.servicemix.org/test">
<mail:poller service="test:PollerService"
endpoint="pollerEndpoint"
targetService="test:file"
period="5000"
connection="pop3://localhost/[email protected];password=xxx"
deleteProcessedMessages="true"
processOnlyUnseenMessages="false"
debugMode="true"
maxFetchSize="-1" />
<file:sender service="test:file"
endpoint="senderEndpoint"
directory="file:/home/me/mail/outfile" />
</beans>