Running multiple instances
I'm in the process of upgrading from 4.5 to 5.0. I followed the instructions on this page http://community.screen-scraper.com/MultipleInstances. (There is no link to this page from the FAQ list. The only way I found it was on a tiny link on the install wizard). The workbench works fine, but when I attempt to run in server mode and attempt to start a session from a java program, the calling program blocks and I never see the session starting. This is now the case for the new 5.0 instance and the original 4.5 instance. I uninstalled the 5.0 and the 4.5 is still behaving this way.
I'm doing this on a Dell laptop running Windows XP. I suppose I'll have to re-install version 4.5 from scratch, but how do I get the two instances to run? Also, I wasn't trying to run them concurrently although I did edit the conf to use different port numbers.
Bruce Baron
Additional Info:
I realized that since all of our sessions are run locally on the default port, we always instantiated the single argument RemoteScrapingSession constructor: RemoteScrapingSession session = new RemoteScrapingSession(sessionName). However, with the dual instance configuration, I switched to the 3 argument constructor RemoteScrapingSession session = new RemoteScrapingSession(sessionName, host, port). In this case session.scrape() is blocking. I had set the port to 8779 instead of 8778, which is the web interface port. I guess this is the one port that won't throw an exception, but causes the client to block instead.
Bruce, You are looking at the
Bruce,
You are looking at the right instructions, but I just updated that FAQ with some information that should help you.