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
Hi, I want to build an Interactive Report on a view. The view definition contains a select on a pipelined table function. I use context functionality to pass paramaters to the pipelined table function. A plain select * from #my_view# in SqlPlus resul [More]
can I install ubuntu 64-bit along with windows 8.1..?Because the last time i tried with 32-bit version ,the entire harddisk got erased..When i enquired with support center they told "HP doesnt support Dual OS"...is that so..?Hi @sundar24295 , I [More]
I have a ipod with itunes library already set up . my wife got a ipodnano & wants her seperate library. I am running windows 7Launch iTunes with the Shift key held down and create a new library, or use separate Windows user accounts. (102186)Read oth [More]
Hello everybody, I need help on mod fuction in java, but I don't know how can I use it, if you know how use it, please give a little example...thanks..http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arithmetic.htmlRead other 3 answers [More]
I want to take my songs off my ipod and put them back on ipod from computer.  I have tried to sync without doing this but it will not sync new foldersSee this older post from another forum member Zevoneer covering the different methods and software a [More]
I've got a classfile - it has few invokeinterface bytecodes inside - their count is defined dynamically - when class is running. And I've got a program, which runs this class. The aim of this program - to gather statistics of invokeinterface calling [More]
Just got my eagerly-anticipated white Zen Micro remote!! Here's my two cents: Pros: . Nice look that matches the design of the unit itself very well. 2. Definitely makes life easier in terms of controlling the unit while staying acti've. 3. Minimalis [More]
I have been trying to update my java for months now. I have done the stupid system update since you (apple) have your own "java" and it states that my system is up to date. I am not very happy with that. I need my java updated so that I can do m [More]
I have a imac with os x Lion 10.7.5 and I have an apple Tv. I want to use airplay mirror to see my pc display at TV but I can find air play mirror at my imac. how can I active it?About AirPlay and Airplay Mirroring AirPlay Mirroring requires a second [More]
This may have been mentioned elsewhere on these forums, but I can't find it. I received an email this morning purporting to be from Adobe with a "user key" attached as a zip file: Dear customer, Your Adobe CS4 License key is in attached document [More]