TechnoBuzz

A Techno Blog, mainly about Java

Properties file setting location

I had a relative path for locating my properties file. It worked fine inside of WSAD, but when you apply code into websphere, it does not know the path. So I used the tip on this page:
Dump your properties file in /WEB-INF/classes
InputStream inputStream = getClass().getResourceAsStream(“file.props”);
props.load( inputStream );
Howver, this page says it best as far as what you place in quotes for the getResourceAsStream call.

Advertisements

September 24, 2004 - Posted by | Patterns & UML

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: