I have an Applet and an Application written in Pure Swing, the Applet queries a database via a Servlet via Hibernate. My Swing Applet queries a Database via Hibernate. The difference in Search speed is tremendous (using the Same Hibernate modules and the Same SearchEngine). Could the whole Network Connection to the Servlet aspect really make that much of a difference in Speed? Does the connection Implementation from Applet to Servlet really matter that much?
With my Swing, the response zooms right onto the Screen. However, with my Applet it drags considerably (its searching through a database of a million or so records).
Another thing, given that I want a Splash Screen to monitor progress via a progressMonitor, am I correct in assuming I'd need to use Multithreading? Am I also correct in assuming I'll have to make sure that the Event Queue should not dispatch another thread whilst one thread is live (that kind of negates the whole aspect of Multithreading though - but not doing so would also risk deadlock).
My baad, the Swing vs. Applet aspect is resolved, once the connection is made the first time, it zooms right through. Not sure if its a Cache thing or Applet loading/connection issue.
I still would like to include a SplashScreen and resolve the multi-threading issue. Please fire out some thoughts and suggestions.