E2E Forum › Modeling & Development › Can't access Static Property
This topic contains 3 replies, has 2 voices, and was last updated by Cyril 1 month, 2 weeks ago.
How can I use static property on SOAP service?
For version reference: ================================================== Cameo E2E Builder 188.8.131.52 Runtime 2016.9 License E2E Technologies <1174>
E2E Model Compiler MagicDraw 18.0 Plug-in 184.108.40.206 Fri Dec 02 14:46:22 CET 2016 ==================================================
What exactly are you trying to achieve?
If you are speaking about SOAP Port, there you should not have any properties.
We do not support static properties in general in xUML services. If you really need to store something you will need to use the memory adapter.
But if you can explain what is your need we may have other ideas to find the best practice solution in your case.
Not that much important on my case. On my sample service, I’m just trying to add a counter for every operation called. How does memory adapter works? Is it like a static container once the service run?
Ok I see. Yes with the memory adapter you can store and retrieve values shared between sessions using the global scope. You can have a look in the documentation for details: https://doc.scheer-pas.com/display/BRIDGE/Memory+Adapter
If you want to persist the count when the service stop you will need to use a file or db.
You must be logged in to reply to this topic.