bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Can't access Static Property

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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3274

    cporciuncula
    Participant

    Hi,

    How can I use static property on SOAP service?

    For version reference:
    ==================================================
    Cameo E2E Builder 6.0.20.1
    Runtime 2016.9
    License E2E Technologies <1174>

    E2E Model Compiler MagicDraw 18.0 Plug-in
    6.0.20.1
    Fri Dec 02 14:46:22 CET 2016
    ==================================================

    #3275

    Cyril
    Moderator

    Hello cporciuncula,

    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.

    #3276

    cporciuncula
    Participant

    Hi Cyril,

    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?

    #3277

    Cyril
    Moderator

    Hello cporciuncula,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.