Sitemap

Amicuk Programming Answers

Multiple apps using same files, how to lock them?

2015-10-11   Views:0

Advertisement

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

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.

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

Go to See the other 2 answers

Multiple apps using same files, how to lock them?

Category:DefaultRelease time:2015-10-11Views:130

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[More]

Custom logging, multiple apps in one file, different from server.log

Category:DefaultRelease time:2015-10-11Views:130

I have several applications running on my integration server. I would like to log from these apps to a single file (different file from server.log) I tried to use custom log4j logging, but there's a problem with the RollingFileAppender. Whenever a fi[More]

I have put all the education apps in one file on my iPad is there a way to lock that file when I open it so that my niece can not leave that file

Category:DefaultRelease time:2015-10-11Views:130

I have put all the education apps in one file and would like to be able to lock it when it is opened to keep my niece from going other places, does anyone know if this can be done and if so how?Maybe you can let her play on your computer where it may[More]

How do I select multiple files under "Get File Info"and lock or unlock all?

Category:DefaultRelease time:2015-10-11Views:130

How do I select multiple files under "Get File Info"and lock or unlock them all? It seems to do it automatically when I have 10 or more selected. But how do I lock or unlock 5 or 6 files in one swoop? ThanksSelect the desired files then press OP[More]

HT201304 I need to restrict access to Settings on an iPad so settings like VoiceOver cannot be activated while letting them access multiple apps on the device. Is their any way to restrict access to settings without locking the device with a PIN?

Category:DefaultRelease time:-0001-11-30Views:130

I need to restrict access to Settings on an iPad so settings like VoiceOver cannot be activated while letting them access multiple apps on the device. Is their any way to restrict access to settings without locking the device with a PIN? This is so o[More]

Ability to add multiple apps to Open With file associations

Category:DefaultRelease time:2015-10-11Views:130

It would be extremely helpful if Bridge's "file association" dialog allowed one to associate multiple applications with a file type, so the Open With function worked like Lightroom's Edit In function which allows the use of multiple external edi[More]

Have found multiple iTunes Library.xml files. Moved Library to new Hard Drive and it needs to be completely rebuilt?

Category:DefaultRelease time:2015-10-11Views:130

Hello. I have a Mac Mini operating Mac OS X 10.7.2. I recently had to move my iTunes Library to a new hard drive. I followed the directions on how to move the library and refind everything yet when I do so what comes up is a mere skeleton of what I h[More]

Scanning multiple pages into one file using MAC

Category:DefaultRelease time:2015-10-11Views:130

How do I scan multiple pages and save them into one file or document using a MacBook Pro laptop?  My printer is an HP Photosmart 7520.  When I use this printer and scan from my PC, it does allow me to scan multiple copies and save as one document by[More]

Multiple databases in one file: a small snafu

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone, Opening multiple databases in a single file is an administrative convenience. It is well explained in the manual (see db/docs/ref/am/opensub.html). Normally, there is little difference between databases in their own physical files or[More]

How do I add multiple images into one file?

Category:DefaultRelease time:2015-10-11Views:130

I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for. I want to know how to add multip[More]

Multiple apps not working after iTunes 6 install

Category:DefaultRelease time:2015-10-11Views:130

ITunes 6.0 and QuickTime 7.0.3 were installed by Automatic Software update. Since then multiple apps including Safari, Mail, and all Dashboard Clients. At first System Preferences was working but has since stopped. All seem to start up but stop after[More]

Hot
I tried using the mini-player and the one in the upper left hand corner to play the songs in the U2 album in my "recently added" playlist, but nothing happens. I had an earlier version of iTunes and it would play automatically or after I clicked [More]
I have 4 apple TV generation 3 devices. I have had these (and some older Apple TV 2 devices) for a number of years. I have home sharing enabled on all the TV devices and use the iPhone remote app or the iPad remote app to control them. After the upda [More]
I have a new MacPro.  I am trying to install a Office 2010 Professional cd.  After I insert CD nothing happens.  I hear the hard drive run for a couple of seconds, but still nothing happens.  I am used to using a Dell notebook and the control panel i [More]
I am creating a materialized view something like this.but getting following error: ERROR at line 1: ORA-12032: cannot use rowid column from materialized view log on "SCOTT"."EMP" SQL> create snapshot log on scott.emp; Materialized v [More]
I'm having some trouble on a couple of websites with graphics. It's hard to explain what is happening visually, but it appears that the screen gets "blocky" and the blocks move around as I move my cursor. Or, portions of the screen turn white. S [More]
I have just added an external drive to my G5 system that I need to share across a network as my internal drive which was shared is running low on space. How do I make my external drive shareable? Thanks in advance for your help.Hi, and a warm welcome [More]
Hello, is it possible to set the character set to anything other than Unicode when the user exports data from an Answers report to a CSV file? I searched through the documentation, but could not find anything useful, except for a setting in NQSServer [More]
After 10.44 update, my Epson 3490 USB Photo scanner has stopped working properly. Is this just another one of those update issues that seem to be reported at the moment. Will someone at Aplle actually fix thisat some point?I can't open Epson Scan - i [More]
Hi, I'm using Java1.5.0_06 on Windows Vista Business Version, and whenever I make a JInternalFrame using the system look and feel (or default Vista look), the whole thing looks horrid. Here is a sample image: http://www.geocities.com/jircii/images/JI [More]
Hi all I am having trouble retreiving data from an access dataabse and displaying the result in a jTextArea. 1) The first problem that I encounter is that I want to query on a specific date. Yet due my date being a string in my code and a date/time i [More]