Page 1 of 1

Want to Run Mulitple Instances....

PostPosted: Wed Feb 02, 2011 1:27 pm
by sytanek
Basically I love how subsonic can stream music and videos now, but hate how they are mixed together, and since there aren't categories at the moment, I would like to run three separate instances of subsonic. One for Music, one for TV, and one for Movies. I am currently using the windows binary. I did try to use the standalone version, and had 2 copies running simultaneously, however any action in one would log you out of the other.

Any ideas?

PostPosted: Wed Feb 02, 2011 2:42 pm
by bushman4
I have been thinking about the same thing, but for a different reason... I want to hide some of my stuff from my "Regular" users...

If the northeast US gets as much snow as they are predicting this weekend, I may actually have time!

Anyway, I think it's going to come down to either needing to install multiple versions of Jetty with their working directories in different places, or installing the Subsonic Servlet multiple times in one overall Jetty installation, but I haven't had time to test that yet...

Please keep us posted if you get to testing before I do.

Glenn

PostPosted: Fri Feb 11, 2011 2:59 pm
by sytanek
Happen to get any closer on this? Still no luck for me....

PostPosted: Fri Feb 11, 2011 6:24 pm
by GJ51
So far, i've only been able to segregate access by setting up different servers. I too would love an alternative to setting up a new server just to limit access to various categories of users who visit my sites. In that I do have 4 servers available, I would be more than happy to test any strategy that anyone can suggest for setting up multiple instances on the same machine. My GJ51 server is solely for testing. It's running Win 7 32 bit for now, but could easily be reconfigured to any Windows OS.

PostPosted: Fri Feb 11, 2011 6:28 pm
by bushman4
Maybe I'll have time to tonight. I think it's as "simple" as getting Tomcat installed and configured as your servlet container, and then setting up two sets of settings for two different copies of Subsonic.

Notice the "simple" in quotes...

Glenn

PostPosted: Sat Feb 12, 2011 4:02 pm
by bushman4
OK, I managed to get two instances working on the same machine, but not the way I really wanted to... I wanted to be able to one run servlet container, and host two copies of Subsonic, but that doesn't work... the subsonic.home is a SYSTEM java property, so it can only be set for the whole servlet container.

Anyway, here's how I got two to work:

    1. Install Subsonic for windows the standard way.
    2. Stop the service.
    3. Edit c:\program files\Subsonic\subsonic-service.exe.vmoptions and add the option "-Dsubsonic.home=c:\subsonic2"
    4. Restart the service. Notice the creation of c:\subsonic2.
    5. Install Tomcat 5.5 or 6. NOT tomcat 7. Set it up to use a different port than the first subsonic installation. Set it up with a network-valid user id to run under if your music is not local.
    6. Download the WAR version of Subsonic, and install it in your Tomcat installation as per the instructions. This installation will use c:\Subsonic as it's working directory by default. It should be accesible at http://host:TomcatPort/subsonic if you follow the directions properly.

All fairly tedious, and with the overhead of Jetty AND Tomcat running.

I'm not a java programmer, but if there were a way to set options for individual servlets in tomcat that Sindre could use, then you could easily run multiple instances as different servlets in Tomcat.

But I guess if I had the choice, I'd rather just have user level security control by Library or Filetype or Folder level (or any combination of the three) than be able to run multiple instances, since security control would mitigate the need for multiple instances.

HTH,

Glenn