Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2004, 06:54 AM
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default properties file reading

hi all,
I want to read a properties file which is placed inside war file from a session bean.
How can I set meta file class path inside ejb jar for this purpose?
or is there any other way to do this thing in websphere 4.0?
thanks
babu



 
Old August 10th, 2004, 07:00 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

One of the best info. abt the properties

http://www.ideas2work.com/read-properties-jsp.html

 
Old August 27th, 2004, 12:32 AM
i2w i2w is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I guess due to different Class loader for web and app/ejb container, one cannot find the properties file under war file from the jar ejb java file.

What you can do write some sort of business object and read/invoke this object in the session as well as web beans.

This business beans will read the properties file.

Hope this helps.

Regards,
Amit
http://www.ideas2work.com






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
Reading/Amending .doc File Properties turklet ASP.NET 2.0 Basics 1 December 14th, 2006 01:08 PM
Accessing properties file outside jar file anand_indya J2EE 0 December 8th, 2004 06:34 AM
Reading field properties from an Access database Anonymouse VB Databases Basics 0 October 29th, 2004 11:44 AM
reading properties file babuchelat BOOK: Expert One-on-One J2EE Design and Development 0 May 22nd, 2004 07:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.