Presumably, .../com/utils is in the stand-alone classpath but not the SB
classpath. It is preferable to put such properties files in a common
location, e.g. <build root>/conf/. Assuming your webapp is deployed as
an .ear file, you can then package conf/ in the .ear and add conf to the
ejb jar manifest classpath.

Fred Loney
Spirited Software, Inc.
www.spiritedsw.com

----- Original Message -----
From: "Venkata Reddy Vajrala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 8:32 PM
Subject: Resouce Bundle


> Hi,
>
> I am trying to read a properties file from a simple class CLogger.java
> using the following piece of code.
> ResourceBundle rsb = ResourceBundle.getBundle("CLogger", new
> Locale("en", "UK"));
> The name of the properties file is "CLogger_en_UK.properties".
>
> The package name for CLogger.java is "com.utils".
>
> This is working fine when in stand alone mode, when I place both the
> class file and properties file in the same folder.
> (.../com/utils/CLogger.class and
> .../com/utils/CLogger_en_UK.properties).
> When I use the same class in a stateless SB, it is not able to
> find the resource bundle.  I have placed the .properties file in the
> classpath.
> I am not allowed to put the .properties file in the same jar file
> in which CLogger.class is placed.
>
> How can we solve this issue?
> By the way I am doing all this on WebSphre Application Server 4.0 AE.
>
> thanks in advance,
>
> Venkat.
>
>
========================================================================
===
> 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