Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the 
discussion

"Re: EJB application properties loading - best practice"

To view the discussion, visit: http://community.jboss.org/message/635082#635082

--------------------------------------------------------------
I did this (from the @PostConstruct event):


ResourceBundle rb = 
ResourceBundle.getBundle("it.bz.prov.mercurius.util.mercurius");

        Properties p = new Properties();

        for (Enumeration<String> e = rb.getKeys(); e.hasMoreElements();) {
            String key = (String) e.nextElement();
            String value = p.getProperty(key);
            System.setProperty(key, value);
        }


I shall try your suggestion, because the @Resource makes a lot more sense to me.

thx
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/635082#635082]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to