ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » resource bundle for reading property file

Post new topic  Reply to topic
 resource bundle for reading property file « View previous topic :: View next topic » 
Author Message
sudeepm
PostPosted: Fri Feb 22, 2008 1:50 am    Post subject: resource bundle for reading property file Reply with quote

Acolyte

Joined: 31 Jan 2008
Posts: 57

I am using Resource bundle to read a properties file .I am passing the file path in UDP .

loggerConfigBundle = ResourceBundle.getBundle("C:\\Project\\configuration.properties",Locale.getDefault());

l_logLevel = loggerConfigBundle.getString("logging.logLevel");
l_Prefix=loggerConfigBundle.getString("logging.Text_from_Config_File");
l_logPath = loggerConfigBundle.getString("logging.Path");


i have added (C:\Project)in class path also but i am getting an error :

(java.util.MissingResourceException) java.util.MissingResourceException: Can't find bundle for base name C:\Project\configuration.properties, locale en_US

can any one help me...whats the problem here ..I donot want to use IO
}
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Feb 22, 2008 1:53 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

http://www.mqseries.net/phpBB2/viewtopic.php?t=42000&highlight=

Don't double post!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 22, 2008 3:21 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The problem is probably because you ask with a specific locale and you have no file named with the locale convention, i.e.
configuration.properties -- no locale
configuration_en.properties -- check correct case spelling for your locale
configuration_en_US.properties -- check for correct case spelling for your locale...

Working as designed.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » resource bundle for reading property file
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.