5 Replies Latest reply on Feb 25, 2011 6:21 PM by Luca Merolla

    Injecting system properties values

    Luca Merolla Newbie

      Hello all,

      I have defined some values in the system properties and I'm able to access those values with

      System.getProperty("environment.url");

       

      What I was wondering is if it is possible to inject the value of system property in a Stateless bean , something like the @Value annotation from Spring

      @Value("${environment.url}")

      private String environmentUrl;

       

      Is there something similar from EJB / JBoss side?

       

      Thanks in advance,

      Luca