cancel
Showing results for 
Search instead for 
Did you mean: 

How to AccessProperty file stored on server

Former Member
0 Kudos

Hi All

I have placed the resource bundle/ .properties file on server.

I need to access those resource bundles.

These resource bundle are NOT placed in the same project but are placed on server.

How can i access the key- value from the resource bundles ?

Please help

Regards

Sonal Mangla

Accepted Solutions (1)

Accepted Solutions (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sonal,

two solutions exist:

<b>

Solution A (Simple): Deploy Resource Bundles within Web Dynpro DCs</b>

You can deploy the resource bundles within Web Dynpro DCs comprising no Web Dynpro entities. This could be named Web Dynpro Resource Bundle DC. Then it is quite simple to load the resource bundle from another Web Dynpro DC by invoking the WDResourceHandler, IWDResourceHandler API.

<b>Soution B (Advanced): Deploy Resource Bundles within non WD DCs</b>

To load such "external" resource bundles you must first define a sharing reference to the DC comprising the resource bundles within your Web Dynpro DC.

Then you can again invoke the WDResourceHandler service passing a reference to the Web Dynpro class loader:

WDResourceHandler.createResourceHandlerForCurrentSession().loadResourceBundle("mybundle",wdComponentAPI.getClass().getClassLoader());

Regards, Bertram

Answers (0)