First of all, acess to file system is forbidden in EJBs, so you
shouldn't do that. You may put those properties as environment
properties in the EJB descriptor or include the properties file in the
same jar as the EJB and access it through the class loader.

   Hope this helps,
   Regards



Srinivasan_S wrote:

> Hi All,
>
>         My problem is that I have to read the user defined environment
> variables within the EJB deployed at Weblogic.
>
>         Basically I have to define ABC_HOME = /user/local/ABC as the
> environment variable which will be set once during installation. ABC_HOME
> needs to be read in an EJB which in turn uses this to read an application
> property file $ABC_HOME/prop/abc.properties.
>
> Any suggested best practices for this repeated problem with implementation
> details.
>
> Thanks in anticipation.
>
>
> S.Srinivasan
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to