2 Replies Latest reply on Jan 31, 2008 7:03 PM by pmuir

    InboundJavaMail MDB

    pucky

      I'm wondering if it's possible to configure an MDB to use the java:/Mail jndi reference rather than hardcoding it via @annotations
      i.d. something like this.

      @MessageDriven(activationConfig = {
      @ActivationConfigProperty(propertyName="connectionFactoryJndiName",propertyValue="java:/Mail")
      })
      @ResourceAdapter("mail-ra.rar")

        • 1. Re: InboundJavaMail MDB
          pucky

          to add some more details, what I'm trying to do is have the MDB check a different email account in my dev environment vs the production environment. If anyone has a better way of achieving this I would be grateful.

          Cheers,
          Pucky

          • 2. Re: InboundJavaMail MDB
            pmuir

            No. But file a feature request in the JBoss AS JIRA - it's certainly doable. If you can write a patch, then I can probably get it in sooner (but probably not until post JBoss AS 5 anyway).