Multiple apps using same files, how to lock them?

Hi all,
I have a unique situation (or so I think). We are running our apps in Citrix servers, such that many users log in to a single citrix server and run our java apps. The problem is, it will be possible that more than one user might use the same app and start to work with the same file.
I have seen the new NIO package, read that it has better file locking and stuff. I guess what I am after is a way to graphically display the user using a given file, with some other features. Basically, if user 1 runs the app, and clicks on a file, they have sole access to it. Now, if user 2 runs the same app, what I would like to see if I can do is in user 2's view of the file system, they see somethine like:
xxxx.txt
yyyy.xml (user1)
zzz.bat
So, somehow, I want to update the JList view of each users view either every so often, or when they click on a file that is being used by another, to let them know that it is locked AND the user who has locked it. This way, they can at least ask that user if they can "unlock" their use of it.
Ideally, if there is some way for two or more copies of the same program (running on the same or different citrix servers) could communicate with one another to constantly update each other of file lock status, that would be great. However, if this is more complex than a few hundred lines, it is a rare occassion that this will happen so it is not worth the effot. Mainly, I need to minimally make sure that if a file is locked by one user, when another user tries to use it they are notified that it is locked.
Thanks.

How about doing file maangement through your server? Keep a database of what files are checked out by whom

Similar Messages

  • Multiple Apps using same security system -  Attn: Frank

    Hi Frank:
    Based on what you suggested for a scenario with different apps/databases using one "application_users", "application_roles" tables and one "system-jazn-data.xml" file, does the following setup sound right?
    (1) APPLICATION_ROLES table
    Add an additional column "APPLICATION_REALM". This will have "app_one_realm", "app_two_realm" etc.
    (2) System_jazn_data.xml
    <application>
    <name>current-workspace-app_one</name> (***App One wrkspace****)
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>optional</control-flag>
    <options>
         <option>
         <name>data_source_name</name>
         <value>jdbc/BDTestDS_App_One</value> (***Points to connection for App One. Does this sound right?****)
    </option>
    <option>
    <option>
    <name>realm_column</name> (***is this correct?**)
    <value>application_realm</value> (**Is this correct?***)
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    <application>
    <name>current-workspace-app_two</name> (****App Two wrkspace. Make sense*** )
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>optional</control-flag>
    <options>
         <option>
         <name>data_source_name</name>
         <value>jdbc/BDTestDS_App_Two</value> (***Does this sound right? Coonection for App Two*****)
    </option>
    <option>
    <name>realm_column</name> (***is this correct?***)
    <value>application_realm</value> (***Is this correct?***)
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    (3) system-application.xml (Points to absolute path for system-jazn-data.xml)
    <jazn provider="XML" location="<absolute address>/system-jazn-data.xml" default-realm="jazn.com"/>
    (4) jazn.xml (Points to absolute path for system-jazn-data.xml)
    <jazn
    location="<Absolute address>/system-jazn-data.xml"
    default-realm="jazn.com">
    </jazn>
    (5) I am not clear about your comment "Regarding Application Context when assigning roles to a J2EE authenticase case see jaassec/index.htm doc" Are you talking about something in the web.xml for each app?
    How does (a)
    <option>
    <name>realm_column</name>
    <value>application_realm</value>
    </option>
    in "system-jazn-data.xml"
    and (b) "APPLICATION_REALM" in APPLICATION_ROLES table
    and (c)      
    <application>
    <name>current-workspace-app_one</name>
    </application>
    <application>
    <name>current-workspace-app_one</name>
    </application>
    in "system-jazn-data.xml" all tie in?
    In other words, how are the roles tied to the appropriate application context? Each app needs to know its role?
    Thanks

    Hi,
    please note that application_realm only works with the LoginModule provided with the document. It doesn't work with the OC4J oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule. Note that the how-to document I pointed you to explains the use of custom LoginModules by example of custom login modules I wrote.
    The way it works is that the application_realm if provided is used when querying the application specific roles. If a realm is not provided then all roles are queried for the user.
    Frank

  • Multiple users using same files, but with different libraries

    My wife and I both have our own iPhone 3Gs. We also have separate user accounts on our MacBook Pro. We would like to share the music/video files that we've got stored on a network drive, but we don't want to have the same library file. We both have different tastes in music, so I'd prefer if our song ratings were separate, as well as the rest of the library info (namely "last played date"). Is there a way that we can keep separate library files, but also be able to have new song purchases on one library automatically added to the other?

    FryeX wrote:
    I have this in my controller:
    -(IBAction) setSize:(id)sender
    And it would be enough to get to the title of the button
    The sender param should be a pointer to the originating button, and you can use the button's tag property to id it. E.g.:
    -(IBAction) setSize:(id)sender {
    UIButton *button = sender;
    NSString *title = button.currentTitle;
    int tag = button.tag;
    NSLog(@"sender=%@, title=%@, tag=%d", sender, title, tag);
    - Ray

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • Photoshop CS4- Does anyone know how to tell if two people are using same file?

    Photoshop CS4- Does anyone know how to tell if two people are using same file?

    Hi,
    Thanks for your response. I'm not the solution in the link.
    The problem that I am having at work it that several people in our department want to be able to update a file, but we want to be sure that no one else is currently editing that file. If someone has the file open, it's helpful to know the user's name so we can talk about when the next person can edit the file. This works in Excel files that we use, and I would love to find out how to do it in Photoshop and Illustrator.
    Thanks for the help!

  • Save file in multiple directories using receiver file adapter?

    Hi,
    Is it posible to save file in multiple directories using receiver file adapter?
    Regards,
    Ashish

    Well, there is a round about way to do that -
    The idea is to use multi mapping. 1:n mapping
    1) Map ur message to 2 different record set nodes. Since you want to use the same file both the mapping will look exactly the same. make sure that the filepath and filename are a part of the output payload message
    2) In the file adapter config. make sure the the file name and file path are from these payload fields. You can use a context object to refer these fields. Voila...the files are created in the 2 direcoties you mentioned.
    of course the simplest way is to route the same message to 2 business systems/services and write them out using 2 ccs.,
    Arvind R

  • If we want to transfer data to multiple receiver using context object, how

    If we want to transfer data to multiple receiver using context object, how many receiver determinations we need to create?

    Hi Chiru,
    Just go thro' the below links for sending data to multiple receivers:
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    Conditions in Receiver Determination
    I hope this helps.
    Regards.
    Praveen

  • How can I download eBooks to multiple iPads using same apple ID?

    How can I download eBooks to multiple iPads using the same apple ID?

    Those are called iBooks. On the devices go to iTunes app and then to the Purchased section in bottom row and find the media and tap install

  • SQL Loader : Loading multiple tables using same ctl file

    Hi ,
    We tried loading multiple tables using the same ctl file but the data was not loaded and no errors were thrown.
    The ctl file content is summarised below :
    LOAD DATA
    APPEND INTO TABLE TABLE_ONE
    when record_type ='EVENT'
    TRAILING NULLCOLS
    record_type char TERMINATED BY ',' ,
    EVENT_SOURCE_FIELD CHAR TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_DATE DATE "YYYY-MM-DD HH24:MI:SS" TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_COST INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_ATTRIB_1 CHAR TERMINATED BY ',' ENCLOSED BY '"',
    VAT_STATUS INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    ACCOUNT_REFERENCE CONSTANT 'XXX',
    bill_date "to_date('02-'||to_char(sysdate,'mm-yyyy'),'dd-mm-yyyy')",
    data_date "trunc(sysdate)",
    load_date_time "sysdate"
    INTO TABLE TABLE_TWO
    when record_type ='BILLSUMMARYRECORD'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    NET_TOTAL INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE BILL_BKP_ADJUSTMENTS
    when record_type ='ADJUSTMENTS'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    ADJUSTMENT_NAME CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE BILL_BKP_CUSTOMERRECORD
    when record_type ='CUSTOMERRECORD'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    GENEVA_CUSTOMER_REF CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE TABLE_THREE
    when record_type ='PRODUCTCHARGE'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    PROD_ATTRIB_1_CHRG_DESC CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    Has anyone faced similar errors or are we going wrong somewhere ?
    Regards,
    Sandipan

    This is the info on the discard in the log file :
    Record 1: Discarded - failed all WHEN clauses.
    Record 638864: Discarded - failed all WHEN clauses.
    While some of the records were loaded for one table.
    Regards,
    Sandipan

  • How to send to multiple people using same port?

    I am trying to have one person send TWO audio sources to 10 others using same port- lets say 12345. I get "Can't open local data port:" error. The first audio is fine since I just use .addTarget(). Is there a way i can do the same for the 2nd audio source still using the same port? thanks!

    As far as I know, you should transmit using even-numbered ports, eg. 22222 and 22224.
    I think a port numbered 22223 and 22225 are opened respectively to handle control information.
    Could be wrong, but try it anyway!
    StHogan

  • How can I scan multiple items using my HP photosmart 2610 and them be able to be in one attachment​?

    I have an HP photosmart 2610 4 in1. How can I scan multiple items and put them in the same attachment using e-mail? Using my laptop.

    Hi @needyrhelp,
    Welcome to the HP Forums!
    I see that you are wondering how to scan multiple items using your HP photosmart 2610 and for them to be able to be in one attachment in your e-mail. I am happy to look into this for you!
    Please see the how to scan guide for the Operating System you are using. Here is the list of how to scan guides, Scan. Select your Operating System from the list, then select How to scan with HP software, then How to scan a multi-page original text document into a single file. You will need to scan each page one at a time, and add it to the same document. The how to scan guide will show you how. After done scanning to the file, then see the link for How to attach a scan to an email.
    If you do not know the Operating System you are using, please visit this website. Whatsmyos.
    Hope this information is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Accessing multiple directories using single file adapter

    Hi All,
              I have data coming from two banks. I need to put them in SAP file server. Now i have two sender adapters for each bank, now is there a way i can use same receiver adapter but create diff directories to store them.
    XIer

    Hi,
    In file sender communication channel there is a check box for Advanced Selection for Source file. Check that and you dont put anything in exclusion which means it takes all the files from multiple direcotires. Please check this weblog where he has excluded some files in the directory. But you dont need to exclude anything.
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards,
    ---Satish

  • Multiple apps with same name

    With all the trouble I've been having with App Store update inconsistencies, I went and looked at the directory where the .ipa files are stored. (These are the actual application files.) I was already aware of the multiple generations of files that are kept in the directory when apps are updated, but I noticed something else...
    There are some applications that have the same name. In my case, I have more than one Solitaire game simply called "Solitaire" and I have more than one Sudoku game with the name "Sudoku". It looks like the way iTunes differentiates them is by giving them generational number. For example, one Sudoku program is called "Sudoku.ipa", and another is called "Sudoku 1.ipa". Then if there is an update to the first program, it gets the new name "Sudoku 2.ipa". You can see that different programs have different files sizes, but by looking at names there is no way to tell which is which.
    I wonder if this factors into some of the problems with application updates and synching them to the iPhone? It seems odd that the same sequential numbering scheme is used for two different purposes: 1. Distinguishing different applications that have the same file name, and 2. Keeping multiple generations of the same program in the directory. It could get pretty confusing.

    If I delete extra .ipa files when two different applications have the same name, then I need to keep track of which is the current version of what. "Sudoku 4.ipa" might be the latest version of one program, and "Sudoku 7.ipa" could be the latest version of another.
    I wish Apple would create a naming scheme where every application has a unique name, and sequential generations are not used. This would make it much cleaner, and there would be no ambiguity as to either which program is which, or which version is which.
    I find the safest way to get rid of all the dups is to just delete them all and re-download the app. The bugs in iTunes still make a mess of things, though.

  • Multiple images with same filename-how does iphoto deal?

    I recently lost a several pictures from iphoto on my imac running snow leopard. I have tried multiple things with the guidance of a senior advisor from apple, but the pictures are not retrievable. I have multiple backups for many, but I lost about 20 images. Naturally, I am a bit paranoid now about the stability of the remaining photos in my 66gb library, so have made multiple backups of the entire library and plan to migrate to aperture 3 with a vault.
    It just struck me though, that because we use multiple cameras with the same canon file naming scheme, I have several instances where I have multiple photos with the same filename. Is this potentially a problem, or because the EXIF info is different for each one, am I okay? If this is a problem, do any of you have any remedies? I plan on adjusting the naming scheme on our cameras for the future.
    Thanks in advance!

    To add to Terence's reply: the only time you might run into a problem is when you might try exporting photos with the same file name to the same folder on the HD. If that were they case you could batch rename the photo's titles with Photos->Batch Change->Titles to Text with the option to add a sequential number at the end of the file name, i.e. Text - 001.jpg, etc.
    Another alternative would be to upload each new shoot to a folder on the desktop and rename them with a renaming app likeName Mangler or Renamer4Mac . I rename them with the date taken and a brief description: 2009-05-10-MomsDayBalboaPark-001.JPG. You also could add an identifier to the description to tell which camera it came from.
    This method will avoid any name conflict down the line and make it easy to identify photos as to their general content when used outside of iPhoto. I've found that a little extra effort up front has saved me a lot of problems on down the line.

Maybe you are looking for

  • Web Gallery in iWeb

    I inserted some Web Gallery in the iWeb page. When I click the link, the the displayed the Web Gallery doesn't have the feature of the stand alone Web Gallery, not option for Download, Upload, and password protection is gone too. Is there anyway to i

  • T440s + docking station

    Would it be posibble to to connect to T440s two external displays using two display ports from new docking station ? Is there any limitation for max resolution ? http://shop.lenovo.com/SEUILibrary/controller/e/we​b/LenovoPortal/en_US/catalog.workflow

  • Report in relevance to billing date

    Hello all Every month we want to make sure all of our projects are billed, therefore we open a report in BYD. Problem is that the reports are only for a fixed time period possible, e.g. full month, full year... what we really want to have is a Report

  • Photos App YouTube video upload length limit

    The Photos App prevents longer videos from being uploaded to YouTube, which now allows videos that are longer than 15 minutes for verified accounts.  This artificial limit needs to be removed. Obviously I can upload longer videos from my Mac, but doe

  • Apple TV- WLC 2504

    I have not been able to get Apple TV to work with a wlan on a 2504 WLC.  Below is my configuration.  Both the Apple TV and the i-devices are on the same subnet.  They connect to different SSID's/WLAN, but both WLANS map to the same segment.  On the i