I am trying to EJB3'ify the MailListener MDB given by Scott Start based on the Wiki item below
http://wiki.jboss.org/wiki/Wiki.jsp?page=InboundJavaMail
I have deployed the code below to JBoss 4.0.4.GA. The MDB comes up, but it doesn't connect to the mailserver specified.
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName="messagingType", propertyValue="org.jboss.resource.adapter.mail.inflow.MailListener"), @ActivationConfigProperty(propertyName="mailServer", propertyValue="pop.gmail.com"), @ActivationConfigProperty(propertyName="mailFolder", propertyValue="Inbox"), @ActivationConfigProperty(propertyName="storeProtocol", propertyValue="imap"), @ActivationConfigProperty(propertyName="userName", propertyValue="****"), @ActivationConfigProperty(propertyName="password", propertyValue="***") }) public class MailReaderMdb implements MailListener { @Resource MessageDrivenContext mdc; public void onMessage(javax.mail.Message message) { System.out.println(""+message); } }
11:53:55,789 WARN [MDB] No message-driven-destination given; using; guessing ty pe 11:53:55,799 WARN [MDB] Could not determine destination type, defaults to: java x.jms.Topic