Skip to main content
Participant
March 1, 2011
Question

accessing a variable from different application instance in fmis

  • March 1, 2011
  • 1 reply
  • 945 views

Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.

Thank.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 1, 2011

    Can you have look at this link: http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2925e64-7fd2.html#WS5b3ccc516d4fbf351e63e3d119f2925e64-7fca

    Basically you will have to create Application.xml for that single application which you are working on and define config properties explained in page above. So all application instances of this application would share these config properties.

    alias19Author
    Participant
    March 1, 2011

    thank for your reply but

    using the application.xml file i will not be able to change the value,


    what i am doing is to logged in a user to an application instance with his username and password. if he logged in to the other application instance with the same username and password, then the fms will call a client function of the first application instance making them to logged out. i am trying to hold all the client object in that global var so that if a new user logged in i will check if he is connected to other instance or not if they do i will make them logged out from the previous instance

    March 1, 2011

    Hi,

    In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d37a-7fff.html

    Thanks,

    Abhishek