Skip to Content
Aug 12, 2011 at 09:21 AM

Include Resource Bundle in EAR or EJB Project



We are creating a Web Service from EAR project and we need to include a third party library. At ths moment We are able to import the jar files of this third party library but the resources (properties files and a XML file) associated can not be loaded at runtime.

This resources are necessary to initialize the third party library and We are not able to modify the path because it's hardcoded inside libraries. Moreover, we are deploying this Web Service (and ear project related to) in SAP PI 7.1 EHP1 and we are using NWDS 7.0.10 (due to this version we create a .sda from .ear and deploy manually in the system).

In order to find automatically the resource bundle, Where is the best suitable place to locate this resources inside the ear or ejb project ? Is it necessary to change application-j2ee-engine.xml to include some references to this resources?

Thanks in advance,

Best Regards,