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
Does anyone know of any resources which take one through the necessary steps required in putting an ADDT-built site to a remote server? I test on XAMPP (basic) and am dreading the errors I will discover when I actually put one of these sites to serve [More]
For the past several years, I have been mounting my PB3 hard drive on my iMac by using an Ethernet cable hard wired between the two and addressing the PB3 as a server from the iMac. Up until this past weekend, I was running 10.2.8 on the iMac. I upgr [More]
Dear expert: Recently, we wanna add new dialog instance for our production system, but only one NT server can be used. Our SAP version is ECC6.0 SR3 and it's CI is running on HPUX 11.31. steps below: 1. I have configed the SAMBA with shared /sapmnt - [More]
Hi, I have a flash file that I am scaling.  There are buttons in the file that have tooltips that pop up when you roll over them. Problem is, the tooltips scale with the .swf file so they get huge and are not in the right spot over the button anymore [More]
Hello all, I need help in using Advance Pricing modifier to adjust the sub total value of the sales order. AM populating a value in sales order header DFF Attribute5 with value.Then i Compare the this value with Sub total value based on Pre book orde [More]
In Indesign CS5 my panels are all with CAPS/UPPERCASE letters. Can this somehow be turned off i find it rather distractingThat's how all panels appear. Not sure why the made this decision... Create a folder in the InDesign directory called "noallcaps [More]
Hi All Can I load multiple flat files in parallel into BPC using IMPORT process chain. If yes , How ? Regards AKPlease import SAP Note [1507226|https://service.sap.com/sap/support/notes/1507226] titled "FileService should support running DM package s [More]
Hi All, I had load data more than 50 MB after that I cannot access any function from browser(RWB,message monitoring,..) but in ABAP side that still work fine. I guess that j2ee engine still process the message that is a reason. So how I can stop the [More]
Today I updated a phone that is not mine from my iTunes account. Both phone's (mine and the other) ended up getting the same information (I assume, because they have the same iCloud account), including contacts. I, not wanting to have the other perso [More]
My 6th generation iPod nano automatically turns off (=stops the music) when I push het sleep/wake button or when screen turns black for power saving mode. Does anyone know how to solve this ? I have already tried resetting, connecting to PC/iTunes to [More]