cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Web Service in Cluster Environment

Former Member
0 Kudos

Hello,

we are using a web service which handles an XML file. It has two methods:

- "getXMLFile"

- "saveXMLFile"

The method "saveXMLFile" should write the XML file to the webContainer of the JNDI (com.sap.engine.services.jndi.InitialContextFactoryImpl) and the method "getXMLFile" reads it from there.

On a single server node machine it all works fine. But as soon as this Web Service is installed on a cluster we have following problem:

When calling the method "saveXMLFile" only the J2EE server nodes assigend to the same dispatcher node where the XML file is saved get the updated file. All other server nodes have still the old version.

Waiting some minutes and even the already updated nodes switch back to the outdated version. I suppose this is caused through synchronising.

To avoid this effect we always are used to call the method "saveXMLFile" on every hardware box.

(Each hardware box has two server nodes assigned two one dispatcher node)

Any suggestions how I can avoid this effect?

regards

René

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi René,

First i would like to know what kind of naming convention are you using to store the XML files on the server.

To me storing XML files into the web container is not a good idea, you can rather use a database to store them.

Anyways, reply back for help.

Best regards,

Guru.