Sharing data stored by javax.jnlp.PersistenceService between users

Application is deployed by Java Web Start. It runs and allows user to store some settings. It stores these settings using javax.jnlp.PersistenceService. Will these settings be available for another user (win account) if this application is run by windows service even before user logon... and it reads the settings values again from the same URL (the key in javax.jnlp.PersistenceService) and exposes it's GUI after user logon where these settings are presented?
I tried the senario described above and saw that another user even can not see the application in a cache (Java Conrol Panel - Application Cache Viewer)... but run by win service application exposes the settings for all the users as if they are shared.
Is it correct behaviour or it should not be like that?

Application is deployed by Java Web Start. It runs and allows user to store some settings. It stores these settings using javax.jnlp.PersistenceService. Will these settings be available for another user (win account) if this application is run by windows service even before user logon... and it reads the settings values again from the same URL (the key in javax.jnlp.PersistenceService) and exposes it's GUI after user logon where these settings are presented?
I tried the senario described above and saw that another user even can not see the application in a cache (Java Conrol Panel - Application Cache Viewer)... but run by win service application exposes the settings for all the users as if they are shared.
Is it correct behaviour or it should not be like that?

Similar Messages

  • Javax.jnlp.PersistenceService bug: ArrayIndexOutOfBoundsException

    com.sun.jnlp.PersistenceServiceImpl, which is Sun standard implementation of PersistenceService interface, only allows for 255 storage entities for a given codebase.
    After some decompiling I found out it keeps an internal array, size 255. Very very dumb move IMHO.
    If you try to register a 256th entity, it fails horribly with a ArrayIndexOutOfBoundsException. This even if all the entries are 0-length, and the storage if effectively using no space at all.
    This effectively hinders any usage of this API as a 'sandbox friendly' filesystem, as I was trying to do, by making the database for my JWS Application save to the PersistentService storage. This is because any 'serious' application creates many files for data and metadata (logs, etc...), and this make PersistenceService completely unfit for the task.
    Moreover this limit is unneeded for security reasons, since size limits are already in, and it would be easily fixed by replacing the fixed size array with an ArrayList, with no consequences at all on the performance or features, except giving user a more capable PersistenceService implementation, that works as intended by the API contract, instead of firing unforeseen exceptions.
    I've filed a bug with bugs.sun.com, let's see if they can fix this one.
    What do you think about this?

    I've downloaded official latest JDK6 sources from sun (jdk-6u1-ea-src-b03-jrl-19_jan_2007.jar), and I've had a look at the actual sources.
    com.sun.jnlp.PersistenceServiceImpl depends on com.sun.deploy.Cache static methods for operations: it's this latter class that handles the persistence entities creation/removal, etc... (they are named 'muffins' in the implementation).
    This is PersistenceServiceImpl.create
        public long create(final URL url, final long maxsize)
         throws MalformedURLException, IOException {
         // compute new limit based on this maxsize + maxsize of all other
         // entries this application has access to.  If this total is
         // >= _limit then ask user if they want to increase the _limit
         checkAccess(url);
         Long l = null;
         long newmaxsize = -1;
         if ((newmaxsize = checkSetMaxSize(url, maxsize)) < 0) return -1;
         final long pass_newmaxsize = newmaxsize;
         try {   
             l = (Long)AccessController.doPrivileged(
              new PrivilegedExceptionAction() {
              public Object run() throws MalformedURLException, IOException {            
                        Cache.createMuffinEntry(url, PersistenceService.CACHED, pass_newmaxsize);
                  return new Long(pass_newmaxsize);
         } catch (PrivilegedActionException e) {
             Exception ee = e.getException();
             if (ee instanceof IOException) {
              throw (IOException)ee;
             } else if (ee instanceof MalformedURLException) {
              throw (MalformedURLException)ee;
         return l.longValue();
        }As you can see the method calls "checkSetMaxSize"
        private long checkSetMaxSize(final URL url, final long maxsize)
         throws IOException {
         // algorithm:
         // friendTotalMaxSize = sum of maxsize of all other muffins accessible
         // by the host that made this muffin.  (i.e. muffins with same
         // host as this one)
         // if friendTotalMaxSize + maxsize > application maxsize, ask user if
         // they want to increase application maxsize.
         URL [] friendMuffins = null;
         try {
         friendMuffins = (URL []) AccessController.doPrivileged(
              new PrivilegedExceptionAction() {
                public Object run() throws IOException{
                    return (Cache.getAccessibleMuffins(url));
         } catch (PrivilegedActionException e) {
             throw (IOException) e.getException();
         long friendMuffinsTotalMaxSize = 0;
         if (friendMuffins != null) {
             for (int i = 0; i < friendMuffins.length; i++) {
              if (friendMuffins[i] != null) {
                  final URL friendMuffin = friendMuffins;
              Long longFriendMuffinsSize = null;
              try {
              longFriendMuffinsSize =
                   (Long) AccessController.doPrivileged(
                   new PrivilegedExceptionAction() {
                   public Object run() throws IOException{
    return new Long(Cache.getMuffinSize(
    friendMuffin));
              } catch (PrivilegedActionException e) {
                   throw (IOException) e.getException();
              friendMuffinsTotalMaxSize +=
                   longFriendMuffinsSize.longValue();
    Which in turns calls com.sun.deply.Cache.getAccessibleMuffins
        public static URL[] getAccessibleMuffins(URL url) throws IOException {
            URL[] urls = new URL[255];
            // Get the list of files that match this name
            final File[] files = muffinDir.listFiles(new FileFilter() {
                public boolean accept(File pathname) {
                    String filename = pathname.getName();
                    return filename.endsWith(MUFFIN_FILE_EXT);
            URL u;
            int urlCount = 0;
            for (int i = 0; i < files.length; i++) {
                u = getCachedMuffinURL(files);
    if (u.getHost().equals(url.getHost())) {
    urls[urlCount] = u;
    urlCount += 1;
    return urls;
    Notice the: URL[] urls = new URL[255];
    In this class we can find a fixed size array, size 255, which cause the bug.
    You can easily test it with the provided test case in my previous reply. :)

  • SRS Browser Role Cannot Access Shared Data Sources

    I've created some reports using VS and shared data sources and deployed. I can run reports (I'm a domain admin), but users I've given system administrator roles within SRS cannot access shared data sources. However, if I embed the data source, everything
    is fine. I'm pulling data from three different servers, so the shared data sources are somewhat important.  I'm using SQL Native userid/passwords not windows authentication.  Anybody got any ideas?  I'm new to SRS.  Thanks.

    Hi Janetb,
    I’m confused about the meaning of “cannot access shared data sources”. Are you saying the user cannot see the Shared Data Sources in Report Server, but he can render the report well? Or the user cannot render the report well because he have no permission
    to access shared data sources?
    If in this first scenario, means that the role of the user have no permission to View data sources. To fix this issue, we can add View data sources task to the current role in SQL Server Management Studio.
    If in the second scenario, it is so strange. In my test, I add Browser role of the report to one user which has no permission to access the shared data sources, but he can render the report which retrieve data from the shared data sources very well.
    To troubleshooting this issue more efficiently, could you tell us the scenario you occurred and the error message you received? So that we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Sharing data stores between BE6000 UCS Servers

    Hi,
    I have two UCS C220 M3 servers running Business Edition version 9.1.
    The servers are in the same data centre and each host a CUCM server, Unity Connection server and Presence Server.
    This is great as each application has two servers and so there is survivability it the case that one UCS server fails.
    Now the customer wants an Attendant Console and has purchased the Cisco Unified Business Attendant Console which does not have a high availability option.
    I have installed this on one UCS server where it is running happily. To provide some resilience what I am considering is turning off the CUBAC VM, copying its files to the other UCS server and adding it to the inventory of that server.
    I have tested this by manually copying the files to my PC then uploading them to the second UCS server and it worked ok but took a fair time.
    I was wondering if there are any ways to improve/automate this.
    My first thought was whether it is possible to share the internal storage of the UCS servers with each other using some clever storage tricks (iSCSI, NFS?).
    If not is it supported/recommended to add external storage (say a NAS) to the BE6000 servers and use this as a shared storage area?
    If yes to the above is there a way to automate the shutdown, copying and restart of the CUBAC virtual machine on the first UCS server?
    My other concern is about leaving a Windows Server VM powered off for an extended period. Is this a very bad thing as it will miss updates or is it something that Windows will deal with gracefully?
    I realise that this is a bit wacky and a far better solution would have been to buy an Attendant Console with high availability built in to it.
    Thanks

    Guys,
    Thanks for the responses.
    I know what I am asking is far from ideal but this is the position that I have been put in by circumstances.
    If I had been involved in the selection of the console CUBAC would not have been selected and I would not be in this position (I would probably have used Fidelus console with queuing provided by CUCM hunt groups).
    Unfortunately I have to play the hand I have been dealt hence my questions about sharing data stores etc.
    I acknowledge that I am stepping away from best practice but if anyone has input on my original questions I would be grateful.
    Thanks
    James

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones.
    We are looking for a way to:
    - Share our photos (we don't use iPhoto) and some files. We would like to have this in one shared folder, that we can access from both accounts in the iMac, the MBA and ideally (though not a must) the PC and iPhones. We would both need to have admin rights to edit documents, etc.
    - Have access to all the information in my account on the iMac from the MBA. Ideally, same thing for his and the PC.
    - Have access to all the data remotely when traveling.
    - Have all the data backed up locally (we already have a cloud backup, but we'd like to have a local backup too as it's easier and quicker to access)
    We have read a lot about configuration, NAS, time capsule... but we get more and more confused, as we are obviously no tech experts.
    Dropbox is not our preferred choice. We already have a cloud backup system. We'd rather have the files stored and accessed locally for everyday use.
    Using a NAS to store shared folders and backup the rest sounds good, but they either seem very complicated to set up, or they have mixed reviews in terms of stability, especially to access files remotely.
    Timecapsule seems easier and more straightforward, but I'm not sure it would solve the "sharing files between users and macs with admin rights"? It seems to be more focused on backing up the main drive and then providing access to the backed up files. (Though I might be completely mistaken!)
    We just can't manage to have one shared folder between both accounts in the iMac. We need to grant admin rights document by document. We don't manage to make it work automatically so we both have one folder to access with full rights for all the contents inside it. And this seems to me like something that should easily be done...?
    Any help, advice, proposals... would be greatly appreciated!!!

    Move any file you want to the other user to access to the Shared Folder. Anything you put in that folder is available to all users.
    The shared folder is here:
    Macintosh HD > Users > Shared

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • Sharing photos between users

    Hello....I'm new to the MAC world and I'm having an issue with Iphoto. I have an account and my wife has an account on our mac. The pictures she has in her account cannot be viewed by myself, and vice versa. I have not been able to figure out how to share those photos between users. Any help would be greatly appreciated. Thanks again James

    first be sure you are up to date - this works starting with iPhoto '09 version 8.0.2
    Sharing via the Shared Folder -- Another major annoyance with versions of iPhoto prior to iPhoto '09 was that you couldn't just put your iPhoto Library in the /Users/Shared folder to share it among multiple accounts on the same Mac, since iPhoto always set the permissions on thumbnails to the account that imported the photos, preventing other accounts from editing those photos and having the edits reflected in the thumbnails.
    That limitation has now been fixed in iPhoto '09, so you can share an iPhoto library merely by moving it to /Users/Shared and then double-clicking it to open in iPhoto from each account. You may be prompted to repair permissions on the first access - click the Repair button to do that. Note that this also works for storing an iPhoto library on an external hard disk that's shared among users or on a network volume for access across a fast network.
    Only one person may access a shared iPhoto library at a time.
    http://db.tidbits.com/article/10204
    LN

  • Working with multiple users and computers, but shared data

    Sorry if this is posted in a poor place, I'm not sure where the best place is. This is sort of a general questions.
    For a long time, my wife and I have had either one computer, or two machines but one has definitely been just a terminal. We've basically set up all of our data to be one one primary machine, and if we want to view/edit that data we have to use that machine.
    We just got a new MacBook Pro and I would like to be able to use two machines as equals. Sadly, this idea of multiple computers, with two users and some shared data is really giving me difficulty. I was wondering if anyone has any suggestions on how to best manage things like:
    Synchronizing portions of our contact list (We share about 50% of the combined library -- we don't have to share all though).
    How to manage iPhoto so that we can each have access to the photos. As an added difficulty (or maybe this is easier?) my Wife just wants to have access to the pictures for viewing and sharing on Facebook/Picassa/etc. I am the only one who wants to edit, correct and cull our library. That said, I always edit when I first put the data on the machine, and almost never again; so it would be fine to have one (or both accounts) set up as view only for the iPhoto data.
    How to manage iTunes so that we can each have access to the music. As a super awesome bonus, it would be great if we could have three libraries: His, Hers and Shared. Maybe as much as 30% of our music library is similar, the rest just gets in the way.
    What is the best solution people have found for calendars? (I'm thinking two separate calendars, and we each subscribe to each others iCal feed)
    Mail.app and bookmark synching is not really a problem for us.
    Two extra points:
    * One machine is portable, and the other isn't. Ideally, when the laptop is out of the house, both machines should still have reasonable access to the shared data. That is: Just dumping things in the shared folder won't work because when the laptop is out of the house we will be disconnected from the source data.
    * We just got a second iPhone. This means that both of us will be taking photos/video separately and trying to synch back to the master data store.
    * Basically, I'm trying to minimize data duplication as much as possible, and just synchronize the systems to each other.
    Thanks a ton in advance. If anyone has any suggestions at all, I would love to hear them. Including "This is in the wrong forum, go ask here instead..."

    So you have a desktop Mac and a laptop Mac, right? Two user accounts (and a third admin account) on each computer, right?
    I profess that I haven't tried this, but here is how I would approach your problem:
    Sharing Music and Photos between multiple user accounts on the same computer: 
    See if http://forums.macrumors.com/showthread.php?t=194992 and http://forums.macrumors.com/showthread.php?t=510993 provide any useful information to assist you in this endeavor.
    Sharing across multiple computers:
    Turn on file sharing on the Desktop (System Preferences > Sharing). Now you can mount the Desktop as an external drive on the laptop's Desktop. Copy the music and photo folders across. Will take awhile to do the first time. Then, for future use, get a copy of the donationware CarbonCopyCloner or equivalent. You can use CCC to selectively sync specific folders from one computer to the other. There may be a hassle with digital copyright issues on music and movies, though.
    Calendars:
    As you have suggested yourself, publishing yours and subscribing to hers is probably the best way to do it, on the same computer. Across computers, syncing with CCC or equivalent would probably be the way to go.

  • Sharing iTunes between users on same MacBookPro

    Hi,
    I have a a MacBookPro working on Mountain Lion. I have just moved my iTunes library and media to the 'shared' folder in finder and repointed iTunes on my user id at the new location. Everything opened up as it should and looked as it did when it was in my personal music folder. Step 1 acheived!
    Step 2 was to create a new user where I would have no password for entry. Step 2 acheived!
    Step 3 I tried to open the 'shared' iTunes library on this new user account, so that I could leave the mac on when friends are around, and anyone can play with my iTunes library without worrying about personal data files being accessed. This is where I am having trouble. It tells me the iTunes library is locked so I cant access it. I have tried to set all folders in the 'shared' heirachy as read and write for both users ('main' and the new 'shared music' user) and I have exited out of iTunes in the main user. I dont understand why my second user cant open the library. Can anyone advise what to do or where to look?
    Thanks
    Rich.

    Hi Simon,
    Any clues in this link?
    iTunes: How to share music between different accounts on a single computer
    Regards
    Colin R.

  • How to get all the data stored on a table?

    Hi.
    I'm tryng to get all the data stored on a database table but I'm losing in trouble. I've looked for a soloution to my problem in the forums but each post I follow related to this issue gives me a different way to solve the problem and no one works :(
    I suppose I have to call the getAllRowsInRange() method from my ViewObject class. But how can I get an instance of my ApplicationModule in order to get the corresponding ViewObject?
    I think I messed my head a lot.
    Could someone help me please?
    Thanks in advance.

    Thanks for your answer.
    However, there are some things that I don't understand. I will look the book but why is necessary to create another ApplicationModule? The fact is that my application just have one ApplicationModule.
    Apart from that, I have tried your suggestion and I've obtained the quite little friendly response that follows:
    javax.faces.FacesException: #{backing_pruebaFilas.commandButton1_action}: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 24 more
    Caused by: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:367)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1498)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
         at view.backing.PruebaFilas.commandButton1_action(PruebaFilas.java:100)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 25 more
    At that point, I think a better explanation of my purpose could be helpful. What I'm trying to do is just create a simple page with a command button, and in its action method get all the data stored in the rows of the table. I've seen a possible solution that I understand:
    DCIteratorBinding iter = getIterator("DatosViewObj1Iterator");
    System.out.println("Iterator Binding: "+iter);
    int startRange = iter.getRangeSize();
    iter.setRangeSize(-1);
    Row[] rows = iter.getAllRowsInRange();
    iter.setRangeSize(startRange);
    but the problem is that I don't know what is the class the method getIterator belongs to.
    Could you help me with this last piece of code? If not, I accept, of course, any suggestion. I am absolutely stuck.
    Thanks and regards.

  • Sharing iTunes between users - problem

    When sharing iTunes (6.0.4) between users on the same mac some of the mp3 files I have show up in the remote iTunes within Get Info as QuickTime movie files (remote). They will not play. In my home folder they are mp3 files. They are inaccessible to the remote user to change. Any ideas anyone?

    The files probably have the wrong creator.
    Discussions member Charlie Minow wrote a script to fix it and explains what could be the cause on this page
    Hope this helps.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.3.9)   Several ext. HD (backup and data)

  • Sharing libraries between user accounts question

    After many years of having one user account on our iMac, I have decided to segregate user accounts for me and my wife. I'm doing this because I have an iPhone and she is going to get one soon. When we sync our respective iPhones, we want to keep iCal and and Address book information unique to each user account. What I'm trying to figure out is how to share iPhoto and iTunes content between user accounts. I know there is a share preference that will allow the master libraries in these applications to be shared, but the photo albums and playlists created on the original user account are not "shared". Would it be possible to have playlists from iTunes and albums/events from iPhoto to be shared between user accounts? This would enable my wife to sync all her iPhone data from her user account. Thanks in advance.

    I have an idea that uses a different approach. I haven't done this for this purpose, so if you decide to try, please do it one step at a time so you can undo it. I'll explain it for iTunes.
    Instead of using the Sharing preference in iTunes, put the iTunes Music folder in a location that can be accessed from both accounts. You might use an external drive, or the <hard drive>/Users/Shared folder.
    iTunes should NOT be running. Go to /Users/<username>/Music/iTunes folder. In that folder is the iTunes Music folder. Copy this folder to a location on the external drive or to the Shared user folder. Rename the original iTunes Music folder another name, such as iTunes Music Old. Make an alias of the new iTunes Music folder (in the shared location) and put it in the user's iTunes folder (where iTunes Music Old now resides). Rename it "iTunes Music" if necessary (you are making the alias take the place of the actual iTunes Music folder). * It is very important that the name be exact.
    Start iTunes. All of your music and other media should be accessible as if the iTunes Music folder is where it used to be. To prove to yourself that the files are being accessed from the new shared location, do a Get Info on a couple of songs in iTunes. "Where" should show the file to be in the new location. To prove to yourself that you can add new content to the new location, download a free song from the iTunes Store (or a Podcast) or rip a CD. Then do a Get Info on the new item.
    Up to here, I'm confident it will work, because I have done it. The rest is "theory"...
    Copy the old user's /Users/<username>/Music/iTunes folder (except the now duplicated iTunes Music Old folder) to the shared location. You are only doing this step so that it will be available when you log in as the new user (your wife's account), which is the next step.
    Log out and log in to the new account.
    Copy everything in the old user's iTunes folder (that you just put in the shared location) to the new user user's /Users/<username>/Music/iTunes folder. Replace any duplicated items. You want the new user's iTunes folder to look exactly like the old user's iTunes folder (except for iTunes Music Old). Hopefully, that iTunes Music alias will connect to the actual iTunes Music folder at the shared location. Try it. Run iTunes as the new user. Hopefully, everything looks like the old user's iTunes. Do the tests like before to prove it.
    At this point, the two iTunes "looks" will start to diverge. But at least the starting point will be the same.
    If something does not work as expected, log in to the old user's account. With iTunes NOT running, go to /Users/<username>/Music/iTunes folder. Delete the iTunes Music alias. Rename the iTunes Music Old folder back to iTunes Music. Everything should be back to the way it was.
    If it works to your satisfaction, you can eventually delete that iTunes Music Old folder.
    I don't use iPhoto, but if iTunes works, you can do the equivalent steps for iPhoto.

  • Sharing data in the JRE

    I Have a class called syncList that basically has a static List and is also a singleton. I have 2 other classes that use syncList called syncListTest1 and syncListTest2.
    syncListTest1 puts an entry into the static list and then displays its contents then waits for thirty seconds(just for testing purposes).
    syncListTest2 simply reads the static Lists contents.
    When I execute syncListTest1 from a command line and then syncListTest2 from another command line syncListTest2 shows the list as being empty.
    My question is: Is there any way of sharing the same syncList between separate applications so that each application can share the same List data?
    Any help would be much appreciated before I tear out the last of my receding hairline!!!
    Code for syncList.
    import java.util.*;
    public class syncList
       private static List<String> sl = new ArrayList<String>();
       private static syncList ref;
       private syncList()
       public static synchronized syncList getSyncList()
          if (ref == null)
             System.out.println( "ref is null, creating syncList" );
             ref = new syncList();
          else
             System.out.println( "ref is NOT null, creting syncList" );
          return ref;
       public void add( String Val )
          sl.add( Val );
       public void remove( String Val )
          sl.remove( sl.indexOf( Val ) );
       public void removeAll()
          sl.clear();
       public void showMe()
          for( int i = 0; i < sl.size(); i++ )
             System.out.println( i + " " + sl.get(i) );
    }Code for syncListTest1.
    public class syncListTest1
       public static void main( String[] args )
          syncList.getSyncList().add( "1 Added" );
          syncList.getSyncList().showMe();
          try
             Thread.sleep(30000);
          catch( InterruptedException e )
    }Code for syncListTest2.
    public class syncListTest2
       public static void main( String[] args )
          syncList.getSyncList().showMe();
    }

    Hi
    When you say that a class is a Singleton, you basically want the JVM to ensure that there is only one instance of the object [This you do by declaring the costructor private and an instance static member]... Now, look at it from JVM's point of view, there is one class with one static member that is created within the class [getInstance() method]... The JVM has no way to tell anyone or even know the existence of anyone else outside itself.... in your case another JVM. You obviously have to make the two JVMs talk... now the problem remains, how to get them talk.....
    There are many solutions to your problem... You are trying to do a IPC [Inter Process Communication] which can be done using socket programming/shared memory... etc...
    There is another set of solution which deals with J2EE application server clustering....
    But looking at your problem, looks like you want a clean and simple way to do this....
    well... one of the very easy ways I would have done it was to use JGroups [Assuming I am not in a J2EE container which provides better options]. This is a very simple clustering framework which helps you replicate some datastructures [in your case a hashmap] over different JVMs and maybe on different machines.... In a very simple High Level overview, it broadcasts the shared datastructure content over the network and all the peers listen to the message thereby updating the shared data.
    Infact JGroups provides a DistributedHashtable [http://www.jgroups.org/javagroupsnew/docs/newuser/node55.html]
    Hope this helps
    Fasih

  • Shared data in custom component and FPM_FORM_UIBB

    Hi all,
    is it possible to share data between a form UIBB and a custom building block context. It probably can be done with shared classes, but is it possible to use the shared data interface and how?
    kind regards,
    Pieter

    >
    Pieter Troost wrote:
    > Hi all,
    >
    > is it possible to share data between a form UIBB and a custom building block context. It probably can be done with shared classes, but is it possible to use the shared data interface and how?
    >
    > kind regards,
    >
    > Pieter
    Hi Pieter,
    As you already said , it is possible by shared classes, i am afraid that it is not possible  to have the Shared Component, interface to get worked the way you would like to have.

  • Where are sound and sharing settings stored in plist on mac mini?

    Hi,
    Does anyone know where are sound and sharing preferences stored in plist on mac mini on OS 10.8?
    I want to auto-configure these settings for a bunch of computers instead of manual configuration through the system preferences menu.
    Anyone has any advice?
    Thanks.

    App (pinned) tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the Firefox profile folder.
    * http://kb.mozillazine.org/Session_Restore
    * http://kb.mozillazine.org/sessionstore.js
    * http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox

Maybe you are looking for