1 Reply Latest reply on Feb 13, 2007 9:31 AM by Peter Klimo

    mail-service.xml configuration using properties-service

    Peter Klimo Newbie

      Our applications (EAR, SAR) expect various configuration properties. These properties are set as system properties using PropertiesService. This works.

      We would like to also use PropertiesService for configuration of mail service, but it unfortunatelly does not work.

      I understood, that if any service depends on another service (like in our case - our SAR application depends on PropertiesService), it must be configured using element in the service descriptor. In case of mail-service it simply doest not work - mail service starts prior to PropertiesService.

      Any ideas ?
      JBoss AS 4.0.5

        • 1. Re: mail-service.xml configuration using properties-service
          Peter Klimo Newbie

           

          "peterklimo" wrote:
          Our applications (EAR, SAR) expect various configuration properties. These properties are set as system properties using PropertiesService. This works.

          We would like to also use PropertiesService for configuration of mail service, but it unfortunatelly does not work. Placeholders in the mail-service.xml are not replaced by system properties set by SystemPropertiesService.

          I understood, that if any service depends on another service (like in our case - our SAR application depends on PropertiesService), it must be configured using <depends> element in the service descriptor. In case of mail-service it simply doest not work - mail service starts prior to PropertiesService.

          Any ideas ?
          JBoss AS 4.0.5