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?
The EJB-JAR has no way to access the property file in the WAR. The "correct" way to do this is to put the property file in a JAR in the same EAR, and add that JAR to the meta file classpath of both the WAR and the EJB-JAR.
If you have that WAR file deployed in WAS then you will be able navigate to that particular properties file (will be under InstalledApps). Then the rest of the story is easy. If its not deployed then I wonder why that WAR file should lie in the app server.