This is sort-of Java, sort-of Web stuff and sort-of General Computing. But here it is in the Web tech forum...
I have a Java server application with a Web user interface. The customer insisted that the Java server application start-up should fire up a Web browser to display the user interface on the machine that is running the server. I used "rundll32 url.dll,FileProtocolHandler" on Windows and com.apple.eio.FileManager.openURL() on Mac OS X to achieve this.
Although lacking control (there are no parameters apart from URL), this has been reasonably successful until now. Now the server application has two Web user interfaces. These are both supposed to fire up when the Java server application starts.
The methods described above are perfectly capable of starting two, or more, Web browsers. Unfortunately, they usually all seem to end up in the same HTTP session. This is a bit of a disaster, as they tread all over each other's session data.
Any ideas how I might avoid this problem? Ideally, a way to start up multiple browsers and be sure they are in separate HTTP sessions.
Note that I already tried using java.awt.Desktop from Java 6. Behaves the same as my existing code. It probably works the same inside...
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.