2 Replies Latest reply on Jan 27, 2009 4:51 PM by Mike Finn

    configure Email in JBOSS ESB on a DLQ

    vasu syagonda Newbie

      To configure Email in JBOSS ESB followed configuring below files, but email not generated:

      1) monitoring-service.xml


      jboss:service=Mail
      <![CDATA[%(ESB DeadLetterQueue Monitor) was triggered for attribute %(ATTRIBUTE).]]>
      Email Alert
      Vasu_Syagonda@mindtree.com
      Vasu_Syagonda@mindtree.com
      Vasu_Syagonda@mindtree.com
      <![CDATA[[jboss-alert] %(ESB DeadLetterQueue Monitor)]]>



      2) mail-service.xml

      <?xml version="1.0" encoding="UTF-8"?>


      java:/Mail
      jbossesb











      jboss:service=Naming




      3) DeadLetterQueue_Monitor-Service.xml

      <?xml version="1.0" encoding="UTF-8"?>



      ESB DeadLetterQueue Monitor


      jboss.esb:category=MessageCounter,deployment=jbossesb.esb,service-name=DeadLetterService


      overall service message count

      4
      -1
      1000
      true
      <depends-list optional-attribute-name="AlertListeners">
      <depends-list-element>
      jboss.alerts:service=ConsoleAlertListener
      </depends-list-element>
      <depends-list-element>
      jboss.alerts:service=EmailAlertListener
      </depends-list-element>
      </depends-list>

      jboss.esb:deployment=jbossesb.esb







      After server restart, i get following DEBUG statements in Console Log:
      ======================================================================
      10:06:45,608 INFO [STDOUT] DEBUG: JavaMail version 1.4ea
      10:06:45,608 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_16\jre\lib\javamail.providers (The system cannot find the file specified)
      10:06:45,608 INFO [STDOUT] DEBUG: !anyLoaded
      10:06:45,608 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
      10:06:45,623 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
      10:06:45,623 INFO [STDOUT] DEBUG: Tables of loaded providers
      10:06:45,623 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
      10:06:45,623 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
      10:06:45,623 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
      10:06:45,623 INFO [STDOUT] DEBUG: !anyLoaded
      10:06:45,623 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
      10:06:45,623 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_16\jre\lib\javamail.address.map (The system cannot find the file specified)
      10:06:45,623 INFO [MailService] Mail Service bound to java:/Mail

      Any more ideas about this - did I miss on some configuration?

      Thanks.
      Vasu Syagonda

        • 1. Re: configure Email in JBOSS ESB on a DLQ
          Vasus SK Newbie

          Hi,

          I did not get any clue why the below config is not working.So I tried to write an sendMail MDB and deployed jar in esb server, i fave following error, any help is highly appriciated...
          Description:
          ========
          I created Message driven bean, EJB jar like this:

          META-INF/ejb-jar.xml
          META-INF/jboss.xml
          some/package/sendmailBeanClass.class
          some/package/AnotherClass.class

          using jar:ejb-2.1.jar

          when i make a jar and deploy in "jbossesb-server-4.3.GA\server\default\deploy" and restart server i get following error.

          What could be the problem,Any help is appriciated.

          --- Packages waiting for a deployer ---
          org.jboss.deployment.DeploymentInfo@80b76779 { url=file:/C:/jbossesb-server-4.3.GA_demo/jbossesb-server-4.3.GA/server/de
          fault/deploy/BHQMessage.jar }
          deployer: null
          status: null
          state: INIT_WAITING_DEPLOYER
          watch: file:/C:/jbossesb-server-4.3.GA_demo/jbossesb-server-4.3.GA/server/default/deploy/BHQMessage.jar
          altDD: null
          lastDeployed: 1232519910582
          lastModified: 1232519910582
          mbeans:

          --- Incompletely deployed packages ---
          org.jboss.deployment.DeploymentInfo@80b76779 { url=file:/C:/jbossesb-server-4.3.GA_demo/jbossesb-server-4.3.GA/server/de
          fault/deploy/BHQMessage.jar }
          deployer: null
          status: null
          state: INIT_WAITING_DEPLOYER
          watch: file:/C:/jbossesb-server-4.3.GA_demo/jbossesb-server-4.3.GA/server/default/deploy/BHQMessage.jar
          altDD: null
          lastDeployed: 1232519910582
          lastModified: 1232519910582
          mbeans:


          Thanks and Regards,
          Vasu Syagonda

          • 2. Re: configure Email in JBOSS ESB on a DLQ
            Mike Finn Apprentice

            OK - maybe a dumb question, but does out-of-box jbossesb come with a deployer for ejbs? Looking at the deploy dir, it does not appear to. Unless I am missing something, you may need to add jbossesb services to a jbossas install.

            mike