From: Dain S. <da...@da...> - 2001-11-23 14:53:20
|
If security allows, you can get some variables with System.getProperties("user.home"). The problem is the EJB spec does not allow EJBs to perform any IO. I think it is ok for a Servlet, but I am not confidant. -dain -----Original Message----- From: Edson Carlos Ericksson Richter [mailto:eds...@te...] Sent: Friday, November 23, 2001 8:33 AM To: JBo...@li... Subject: Re: [JBoss-user] How can I obtain home variable for a application from and ejb and a servlet ? Home variable of the user? I think that Catalina should not enable app to see this type of information due to security contraints... Anyway, you can access environment variables trought System.getProperty... With System.getProperties you'll get a list of environment variables... Edson Richter ----- Original Message ----- From: Gabriel Ciuloaica <mailto:gci...@so...> To: JBo...@li... <mailto:JBo...@li...> Sent: Friday, November 23, 2001 7:57 AM Subject: [JBoss-user] How can I obtain home variable for a application from and ejb and a servlet ? Hi, How can I obtain home variable for an application from and ejb and a servlet ? I need the home variable of an application to cconstruct the path to a configuration file. Thanks Gabriel Ciuloaica Software Developer SoftVision 40-64-420127 |