Skip to Content

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

Why static variables?

Hi all,

I'm a J2EE developer who is a newbie Web Dynpro Java developer fixing some apps done by outside. I am confused by all the static variables. Static variables only have one instance for a JVM. Is there a new JVM for every user's Dynpro app that is started on the portal? Yikes. Otherwise, one user's values would overwrite another user's.

Please set me straight on how static variables work in the Dynpro controller, view, etc.

Thanks,

--Amy Smith

--Haworth

Former Member
Former Member replied

Looks horrible. Replace them by context attributes / nodes and share them between controllers by context mapping.

Armin

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