Lock in FMS code

Hi,
       Does anybody has idea about locking system in FMS server side code. Like we have locking system in Coldfusion and other technologies (CF lock).
Like shared objects we have lock, but what If I want to implement lock on the particular script. For example at onConnect of any user to FMS,  I have script which is doing 8-9 different tasks before or after accept the user for that FMS application session (including remoting calls).
Now if 20 users came at the same time in the same room, how will FMS execute them and process the 8-9 task, which user will be executed first and who would be next.
In short, how FMS will execute the piece of code or process for multiple user at the same time.
So locking system can fix this problem I think.
Is  there anything else we can do to make this system better.
Looking forward any help in this area. If there is any expert please suggest the best solution.
Thanks,
Amitabh Arya

Hi,
            Thanks for replying. Both methods are really good. First I thought to reply you as this is the best answers but then I decided to discuss it little more in depth and to reach the best solution. As you are sounding a good FMS professional to me  .
Before discussing further let me introduce with some of my concerns:
>> I am rewriting this application for one of my client. (Some other guy wrote this earlier for them)
>> In current scenarios, the application each instance (each room) has about 50 users at the time.
>> On every connect and disconnect, there is a  remoting call to update the database, writing the logs in a text file (from FMS only) and much more logic and checks.
>> There are multiple servers and every server has the same version of application code.
In 2nd solution, (this should be the perfect solution, what Adobe should code in FMS by default ) But I have few points to discuss
>>  The main part of connection (connection business logic) is depend on client side code, while I think to keep the complete code (business logic) at server side is more secure.
>> Its a long process, while you are using it with remoting. As user will come, put him in array, wait for completion of last process, and broadcast client method. Clients will call the server methods back, start the process for next user, process the checks, initiate remoting and call the remoting methods, wait for remoting callback (result) and then accept the user finally. Its still fine for application where we have 5-6 users but I think we should not count on this solution if we are talking 50 connection at the same time. If at any point FMS skips the code or doesn't process it then it will be a break and will take time to debug it.
>> The main problem is still not fixed (How FMS manage the multiple users at the same time). As multiple users will come at the same time, how can we assure that FMS will assign different index to each user or push each user in array with different index. Because the problem is not to process the one line code or multiple code lines but to manage the multiple users at the same time, who will be first and who will be next, How FMS will decide this.
In 1st solution, sounds good to me. But
>> As FMS creates different instance for each users and provide a different client id, so create a client level function at server and process the whole business logic of accepting a client in that, make more sense to me.
But I am confused that what you mean by "cannot use global variables", what kind of global variables are you talking here, is that trace or setIntervals or something else. And is there any security issue to use the client object functions to accept the clients. Please verify .
One more things, (I might be going away from topic). Do you have any idea about secure.asc file what it does.
Once again Thanks for your replying. Looking forward to your replies again 
Amitabh Arya

Similar Messages

  • My daughter was fooling around in settings and now her ipod is locked and her code wont open it what can we do

    My daughter was fooling around with the settings and now her ipod is locked and her code wont open it . what can we do

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    

  • How to lock a transaction code  in a report  ?

    Dear Abapers ,
         i had a requirement to lock a transaction code in my Module pool programming . the requirement goes in this way ..
    " if a  single user is editing a report then that particular report has to be accesseble to only that concerned user , it cant be accessed to any other user who gonna run the report unless the first user exits the report . <removed>.
    Thanks & Regards,
    Sravani . Y .
    Edited by: Thomas Zloch on Apr 5, 2010 8:39 PM

    Hi,
    You have to verify the processes in execution. Here an exaple code:
      DATA: BEGIN OF WP_TABL OCCURS 10.
              INCLUDE STRUCTURE WPINFO.
      DATA: END OF WP_TABL.
      " This CALL verifyes the processes in execution:
      CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE ID 'TAB' FIELD
        WP_TABL-SYS ID 'CPU' FIELD WITH_CPU.
        " Now loop at table WP_TABL
        LOOP AT WP_TABL.
           " Inside this loop you have to check if the report field WP_TABL-WP_REPORT is been executed more than one time. The user field WP_BNAME tells you who is executing the program.
        ENDLOOP.
    I suggest you, ask for an ABAPER help with this code example.
    Hope it helps you...
    Alexis Sánchez N.
    SAP ABAP Developer Consultant
    <please no company names in the posts, folks can view your business card if interested>
    Edited by: Thomas Zloch on Apr 12, 2010 4:50 PM

  • Locking of transaction code

    How can I lock any  transaction code
    Regards
    Amitava

    Hi
    Go to T.Code SMO1.
    enter the t.code that you need to lock in the below tab. and in the screen the t.code will come
    select the lock option and tick over there.
    so that t.code wil be locked . you cannot use the t.code henceforth

  • Mass locking in material code

    Dear all,
    I want to know the transaction code of mass locking the material code.. i can do it individual thru mm02 but i want to do in mass and 2nd is mass locking of material for QC only....pl. suggetst...
    thanks
    sachin

    You can do it through MM17 trxn
    Check
    MASS DELETION OF MATERIAL

  • My ipad is locked, the pass code not activate my divice. what can I do to resolve this problem?

    My ipad is locked, the pass code not activate my divice. what can I do to resolve this problem?

    You should connect your ipad 2 to the computer you registered it too.  And then, the pass code would be off. If that doesn't work, then you should go to the Apple Store and they will unlock it for you but you will have to answer some security questions.

  • HT201328 my iphone4 has locked by pass code and i'Forgot the password and i'cant restore my iphone

    my iphone4 has locked by pass code and i'Forgot the password and i'cant restore my iphone

    i'put it in recovery mode and i'cant do the restore

  • Forgot my Ipad lock screen pass code

    I forgot my lock screen pass code and I can't get into my Ipad. I tried to restore my Ipad. It keeps asking me to turn off find my Iphone. I can't get into my Ipad to do that. Then I tried to get into my Iclouds account to erase my Ipad. But is not showing it says to add device. Please help.

    Hi spiggz,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    Cheers,
    - Judy

  • Iphone is locked with pass code but still we can make a call using voice control

    If our iphone is locked with pass code we can make a call using voice control.
    Press and Hold the Home button then you will get the Voice Control Menu.
    Choose Dial or Call then you can make call.
    Is it IOS Bugs or...

    It is a feature.
    You can disable it at Settings > General > Passcode > Voice Dial if you wish.

  • Bit Locker 48-digit Code Need?

    Hello
    my external HDD has bit locker
    when i remove my windows7 & install new windows8
    i can't open my hard, windows need 48-digit code but i have not it
    furthermorei have my password but windows don't need my pass
    and directly say you forgotten your pass and need 48-digit code
    my question is: how enter my password to open HDD without 48-digit code ?
    like this:
    http://social.technet.microsoft.com/Forums/getfile/389032
     thanks a Bunch

    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/b42d7e23-a41d-4fc7-a8fb-a441712b2a0d/bit-locker-48digit-code-need?forum=windowsazuresecurity
    Your Problem is Already Resolve Same Question You Ask Above Link
    Moderator Please Take Any Action  
    DushYant'

  • OKP1 - period lock on company code level

    Hi all,
    I wonder if anybody can help me with this issue.
    Is there an alternative transaction (or any other way) to OKP1 for locking period only on company code level?
    In standard, OKP1 locks on controlling area level.
    The only way which comes on my mind is to set a new validation rule.
    Thanks a lot
    Regards
    Peter

    Hello Peter,
    we are very interested in this issue.
    For our project we also plan to have an assignment from 7 company codes to one controlling area and we also want to control the closing by company code.
    Now we read your thread about this issue and try to work out how you have designed the validation step (OKC7) to check if one business transaction is only allowed for postings in a single/specific company code at the time.
    We are looking forward to your reply!!
    Kind regards
    Udo

  • Lock Box Reason Code.

    Hi Experts,
    I am getting one issue in lock box, If Suppose customer has invoice of $ 1000, he is eligible for discount of $ 50 so he should pay net amount $ 950. But customer is paying full amount without knowing that he is eligible for discount i.e $ 1000. so system is crediting back $ 50 to the customer(returning back the $ 50 to customer).
    In this case i want system should accept amount $1000 and system should not credit $ 50 to customer(system should not pay back to customer $ 50), instead of this system should transfer the balance to GL account by using the reason code.
    Note : we are using BAI2 format for lockbox.
    Please be advised what should i do in this case if i want to accept the full amount from the customer without doing the credit to him and i want to transfer the amount to GL account by using reason code in BAI2 format.
    Regards,
    Sam.
    Edited by: samiuk on Nov 11, 2011 4:23 PM

    Yes you can.
    Customer and User tolerance limits, payment advice tolerance limits and reason codes
    When an incoming cash payment does not exactly pay the referenced open item(s), then the system will not be able to perform clearing without creating residual items back on the account - except when you establish tolerance limits to allow posting with a write-off of acceptable payment difference amounts.
    Reason code settings are used for description and reporting purposes, generation of specific customer correspondence letters (automatic system generation whenever this reason code is assigned to a document), and difference item write-off/dispute status assignment.

  • Lock box  reason codes

    Dear gurus
    please advise as how we can uses reason codes with lock box file processing.
    We want to write off each individual invoice on customer open item if it is paid +/-60$.
    Can we use reason codes with lock box automatic processing, so that these +/-60$ writeoff's go to a particulat GL acct.
    Many thanks in advance.
    MSJ

    Yes you can.
    Customer and User tolerance limits, payment advice tolerance limits and reason codes
    When an incoming cash payment does not exactly pay the referenced open item(s), then the system will not be able to perform clearing without creating residual items back on the account - except when you establish tolerance limits to allow posting with a write-off of acceptable payment difference amounts.
    Reason code settings are used for description and reporting purposes, generation of specific customer correspondence letters (automatic system generation whenever this reason code is assigned to a document), and difference item write-off/dispute status assignment.

  • Lock for transaction code.

    i have created screen executed with Transaction code,having few Controls inside screen.
    As soon as I enter action(click push button) inside the screen.(ie Transaction code), this transaction screen should be locked, and other users should not use the transaction simultaneously in the present System.
    I have to do it inside the ABAP coding. could you please help me how to do it.
    Regards
    Chandra

    hai
    I used below FM with parameter 'ZTRAN$' for TABNAME as u said.my transaction name is ZTRANS.
    Now tell me onething, If same user opens the same transaction again(\n) , transaction opens for simultaneous access.
    How to deal this case..will this FM cover this function also?
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
      MODE_RSTABLE         = 'E'
       TABNAME              =  'ZTRAN$'
      VARKEY               =
      X_TABNAME            = ' '
      X_VARKEY             = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Lock Screen Pass Code

    Daughter changed the pass code on the lock screen and does not remember it; how do i fix a lost pass code?

    Force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

Maybe you are looking for