cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying XML-File in EAR or EJB

Former Member
0 Kudos

Hi there,

I am trying to deploy a XML-File which contains some configuration-values onto the WAS. The file is needed by several EJB-components. It should be possible to edit this file. So it can not be stored in a .jar-archive. In best case the file has to be placed in /usr/sap/J2E/JC00/j2ee/cluster/server0/apps/package/myApp/file.xml

Can anyone help me please?

Kind regards

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thomas,

Even if you store the file on the absolute path specified, you wont be able to edit / change it as File I/O is not allowed as a valid operation from inside EJBs.

Regards,

Amol

Former Member
0 Kudos

Hi Amol,

I do not care if it is a valid operation of the EJB. I have got the requirements to read a config-file from the filesystem. The only problem is, how to get it on the server. I solved it by using an additional WebProject, but it is not the best and cleanest way. Because of that, I am searching for a solution to deploy it via EAR or EJB-Project.

Regards,

Thomas