cancel
Showing results for 
Search instead for 
Did you mean: 

Include Resource Bundle in EAR or EJB Project

DavidFernandez
Discoverer
0 Kudos

Hello,

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,

David

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create an external library DC from your third party library, and reference this DC from your own DC. No need to unpack the 3rd party JAR files.

Regards,

Walter

DavidFernandez
Discoverer
0 Kudos

Hi Walter,

Thanks for your response, it helps to solve the problem. Apart from your advice, we had to insert a classpathentry, inside of .classpath, point to a file which contains the configurations files.

Best Regards,

David Fernández