How have two people using diff clients but same app, and have app know that

I want to have an app called XMLReader that reads an xml file and then puts it into a JTree. Then I want the person to be able to edit it. But I also want to be able to lock it (using mutex or synchronization) so if someone else on the same network opens up XMLReader, then they cannot edit it at the same time. Also, when they open their app and then Person A edits it, I want it to notify Person B's app.
Does anyone know how to do this? Can it be done with the two instances and no server?

I want to have an app called XMLReader that reads an
xml file and then puts it into a JTree. Then I want
the person to be able to edit it. But I also want to
be able to lock it (using mutex or synchronization) so
if someone else on the same network opens up
XMLReader, then they cannot edit it at the same time.
Also, when they open their app and then Person A edits
it, I want it to notify Person B's app.
Does anyone know how to do this? Can it be done with
the two instances and no server?quite interesting
ok
i try
my solution is
make a interface which has the method which edit the xmlreader to the user whom u want to give the access of
editing make all the other methods which the other users can use in a different interface and give that instances to them
hope u will understand the hints if u want more explanation i will give
in this case make all the other users to register with the Xml reader to get the notifications if the Xml reader is changed by the user who can access
so it will be quite easy for u now to notify the users when the file is edited
it can be done both in single JVM and also in different JVM(client server)
regards
kamal

Similar Messages

  • How can 2 people use itunes in the same household? we both have iphone 4 and separate id but the same itunes? pleasehelp

           how can two people use itunes in the same household? i had a iphone before so alreday had an itunes account now me and my husband have upgraded and we now both have them. he has set up a username and i have mine yet when he logs in he seems to just get my account? please help

    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.  If you are syncing Notes with iCloud, you'll also have to email your notes to yourself so they can be recreated in the new account as they cannot be migrated.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • I have switched from using a PC to an iMac and want to know how to register Lightroom 5.7 for new Mac?

    I have switched from using a PC to an iMac and want to know how to register Lightroom 5.7 for new Mac?

    Are you on CC or standalone perpetual licence?
    If the former I believe you merely download LR from the CC site onto your iMac and log in and off you go.
    If the latter, download LR onto your Mac from the perpetual licence site (not the CC version), install it and use the same licence number as with your PC.

  • HT201412 my ipad3 does not turn on after it went off while using it, anyone with same experience and have it resolve already?

    my Ipad 3 will not turn-on after it went off while using it, anyone with the same experience and have it resolve?

    Is the battery charged?
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • If two people use one computer, but we have separte itunes accounts, Apple ID, and icloud will my apps I get be stored in their account too since we are using the same computer?

    If two people share the same computer, but have separate itunes account, Apple ID, and icloud and one of them downloads an app will it also go into the other persons account since y'all use the same computer

    If you  have separate user accounts on the computer, then your downloaded apps are stored in your iTunes Library. See the following for dealing with having multiple users on the same computer: How to use multiple iPhone, iPad, or iPod devices with one computer.
    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • A way to have two users using seperate devices but one mac computer

    I have a 97 year old mother in law that tries to stay current with her children. She's been using an ipad for over a year. She has a older mac that no longer can be upgraded. She recently purchased an iphone 4s and would like to be able to sinc only her contacts, calendars and emails using the cloud but separately from mine. This way she can hopefully be able to keep only her stuff syncing together. Her contact list is relatively small compared with mine. She would like to be able to tell Siri  "Call Jim" and not have 10 Jims appear (because I may have a bunch of Jims) that she must select from.
    I'm trying to keep things simple for her but am now challenged on how to do this. If I sync her ipad and iphone with my computer, I'll be able to manage some things for her, but I would rather not have her accidently delete contacts from my address book. She only uses the ipad and will now be using the iphone to view pictures, emails, messages, etc. It would be nice to have her devices syncing together, and to have a backup in itunes on a mac. Is this possible??
    Thanks

    You're welcome.
    An iCloud account or email address does not have to be your Apple ID for iTunes purchases. Many have a different Apple ID from the iCloud account email address. They can be one and the same or you can have a separate Apple ID.
    You can continue backing up her iPad on your computer or the best way IMO is to have her own iCloud account for backing up her iPad wirelessly and for keeping contacts and calendar events, etc. completely separate.

  • How can two people use both of their shared credit cards on each of their two iPhones if the credit card numbers are the same but the names are different? The iPhone won't accept the second card because it says that it's already been loaded.

    iPhone won't accept second credit card with the same number, but different user.

    Only one credit card can be on an iTunes account at any one time - presumably if they are shared credit cards with the same card number then it's the same credit card account with the one bill, so from a billing/payment point of view does it make any difference which card is on the account(s) ?

  • How can two computers use time machine on same Time Capsule?

    I just purchased a Time Capsule and successfully backed up my computer. My brother is on the same network but cannot get Time Machine to back him up on the Time Capsule without my backup being deleted.
    How does one enable Time Capsule to serve as back up for two different computers?

    There are some options:
    Manually delete a number of old backups from the Mac that's "hogging" the space, per #12 in  Time Machine - Frequently Asked Questions.  After "compacting" that sparse bundle per the pink box there, you may be able to limit the maximum size of it, per #A8 in Time Machine - Troubleshooting.
    Another is to connect a USB drive to the TC (likely with a powered USB hub), and back the other Mac up to it, instead of the TC's internal HD.

  • Am an australian living in berlin, have chosen all downloads in english but apple page and all app info is in german. how do i change this to all english ?

    aussie living in berlin. downloaded i tunes to my pc running xp pro, selected english in all language boxes but all info is in german. how do i change this so i am accessing an engish i tunes ?

    see this discussion.

  • Ok, I have two itunes library account one for the PC and one for my Mac, I have my first iphone on my PC, but i just upgrade and I would like to use my new iphone on my Mac but all of my apps and other stuff is in the first library.. How do I put my apps

    ok, I have two itunes librarys account, one for my PC and one for my Mac, I use the PC for my iphone, but I upgrade my iphone and all my apps and
    stuff is on the first itunes library. How do I put the apps from one iphone to the otherusing two dirffernt itunes library? please help..

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • HT5177 How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    Have the project, events and media on one drive which is common to both macs.
    You can download FCP X to both macs using the same Apple ID that it was purchased with.
    Andy

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • I have two iphones using the same computer and I can only find a backup for my iphone and not my girlfriends.  She uses itunes a lot more often then I do but cant find it

    I have two iphones using the same computer and I can only find a backup for my iphone and not my girlfriends.  She uses itunes a lot more often then I do but cant find it.  Really need some help.  Shouldnt her apps and details be saved online in the itunes store?  Even her apps wont appear

    If you create an Apple ID for your daughter, signing out of the existing Apple ID with the iTunes & App Store on her iPhone will not change anything on your iPhone.
    All apps include DRM protection which is tied to the Apple ID that was used to download the apps.
    If she starts using her Apple ID to download apps, when there is an app update for an app on her iPhone that was downloaded with the current shared Apple ID, she will need to use that Apple ID and password to download the app updates.

  • HT5622 I have two ipads using the same ID and password.  How do I give one of them a new ID and password?

    I have two ipads using the same ID and password.  How do I give one of them a different ID and Password?

    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
     Cheers, Tom

  • I have lost my iphone 5 the day before yesterday,and have tried many ways to find it, but in vain. i wandered if there are some useful solutions to such kinds of issues, because lots of people have similar terrible experiences. many people lost their app.

    i have lost my iphone 5 the day before yesterday,and have tried many ways to find it, but in vain. i wandered if there are some useful solutions to such kinds of issues, because lots of people have similar terrible experiences. in china many people have lost ihones, which means you also expose all of your information you have saved in iphones. this is dangerous,because criminals can take advantage of those information. i think apple should talke more measures to stop the thieves from using apples so easily.

    cuz me too same case I have also I lost all my photos 800pics

Maybe you are looking for

  • How to connect a remote server in my local pc?.

    I have a code to connect my server in visual basic 6.0 code, my sap version is 2007 A. Private Sub ConnectToCompany()     '// Initialize the Company Object.     '// Create a new company object     Set oCompany = New SAPbobsCOM.Company     '// Set the

  • Regarding information in BW

    Hi All, I am unable to see purchase order information for specific vendor in purchasing financial report, in BW system as it is within  R/3 system. Help please.

  • Windows support software loading forever...

    Just bought a macbook pro 13' and installed windows (original home premium) on it via boot camp. Both mac and windows are working, used the option key when rebooting and tested both, everything seems to be perfectly working. Internet and special keys

  • HELP!!!  I moved my videos to an external HD and now they are gone.

    I moved two movies to an external HD, and archived them. Now all the files are gone, I tried using Disc Doctor but it couldn't find the files. I'm hoping its because the demo version has a size limit of 10GB, and the files were closer to 26GB each. I

  • TDS certificate:Quarter Acknowledgement no. is not appearing in certificate

    Hi gurus, It is apearing like Quarter Acknowledge no. 1.          N. A. 2.          N.A. 3.          N.A. 4.          N.A Pl advise how it can appear in certificate. Regards, Samar