2 Replies Latest reply on Mar 29, 2003 3:12 AM by padmal

    mail service configuration

    padmal

      hello all,
      Pls advice me how to send the jboss log file to mail account.? What r the configuration.
      I change "mail service.xml" file and "log4j.xml" file
      here is sample code
      mailservice.xml
      ****************************************
      <!-- ==================================================================== -->
      <!-- Mail Connection Factory -->
      <!-- ==================================================================== -->

      java:/Mail
      aruna
      a

      <!-- Test -->

      <!-- Change to your mail server prototocol -->


      <!-- Change to the user who will receive mail -->


      <!-- Change to the mail server -->



      <!-- Change to the SMTP gateway server -->

      <!-- Change to the address mail will be from -->

      <!-- Enable debugging output from the javamail classes -->




      *****************************************
      log4j.xml
      *****************************************

      <!-- ====================== -->
      <!-- More Appender examples -->
      <!-- ====================== -->

      <!-- Buffer events and log them asynchronously-->

      <appender-ref ref="FILE"/>
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="SMTP"/>


      <!-- EMail events to an administrator-->





      <param name="DatePattern" value="'.'yyyy-MM-dd-HH-mm"/>












      *****************************************
      For test this mail address r working properly

      Pls help me

      Thanks

      pad

        • 1. Re: mail service configuration
          padmal

          when i put debug status true on mail service.xml file i got this message when the jboss start.
          *****************************************08:38:44,927 INFO [MailService] Creating
          08:38:44,937 INFO [MailService] Created
          08:38:44,937 INFO [MailService] Starting
          08:38:44,977 INFO [STDOUT] DEBUG: JavaMail version 1.3
          08:38:45,017 INFO [STDOUT] DEBUG: successfully loaded file: E:\j2sdk1.4.0_01\jre\lib\javamail.providers
          08:38:45,037 INFO [STDOUT] DEBUG: !anyLoaded
          08:38:45,047 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
          08:38:45,167 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
          08:38:45,167 INFO [STDOUT] DEBUG: Tables of loaded providers
          08:38:45,167 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[
          TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[S
          TORE,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]}
          08:38:45,167 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.
          IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc
          ], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
          08:38:45,177 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
          08:38:45,177 INFO [STDOUT] DEBUG: !anyLoaded
          08:38:45,188 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
          08:38:45,188 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: E:\j2sdk1.4.0_01\jre\lib\javamail.address.map (The sys
          tem cannot find the file specified)
          08:38:45,188 INFO [MailService] Mail Service bound to java:/Mail
          08:38:45,188 INFO [MailService] Started
          *****************************************
          What is the solution for this ? Pls help me

          Pad

          • 2. Re: mail service configuration
            padmal

            Still i culdnt find the solution help me