I have a requirement to access a properties file that will be part of the EAR in an EJB within the same EAR.
Please let me know how I can achieve this requirement.
At present I have hard coded the code: The relevant part of the code is:
FileInputStream emailStream = new FileInputStream("/usr/local/jnj_applications/cfg/blueprint/email.properties");
Properties props = new Properties();
InitialContext ctx = new InitialContext();
javax.mail.Session mailsession = (javax.mail.Session) ctx.lookup("MAIL_SERVER");
mailsession = mailsession.getInstance(props);
Please let me know ..........