Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Java singleton object in all server processes of a dialog instance

Hi all,

A SAP Web AS Java (Cluster) with one central dialog instance has two (more than one) server processes/nodes.

In process/node 1, a singleton Java object, i.e. StateHolder is being instanciated and filled with arbitrary

other data objects.

This very object is supposed to be also available in node 2 of the central instance. However, if this StateHolder

object is bein accessed in server process 2, i.e. with StateHolder.getSingleton(), that was created in server

process 1, the StateHolder object is being recreated with of course all saved data being lost. By calling

StateHolder.getSingleton() in node 2, not the same StateHolder instance of node one is returned, but a new one.

Is there a possibility to let node 2 access the identical StateHolder singleton instance of node 1, or to copy

this instance into node 2?

Any help would be greatly appreciated.

Kind regards


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question