|
|
Re: java.io.FileNotFoundException: <a href="http://localhost:8080"><a href=
|
Posted: Aug 8, 2005 5:35 AM
|
|
To which part? My solution was a multi-tiered scene in which I had my Applet as a Client (It knew nothing about the database), it would send out requests to a Servlet such as: "table=search_category" Forgive me if I'm a little bit off, but that was a month or two ago so I can't remember the specifics right down to detail. It communicated with a Servlet that called upon Hibernate type objects
(there are a fair deal of hibernate tutorials - btw. Hibernate is a great tool, once learned, will make your life 100 times easier).
My Hibernate modules ran Sessions against a local postgres database that was on my machine (configured to run by a postgres-jdbc driver.
So in summary as explained above you have:
An Applet - communicates with a Servlet, A Servlet - communicates with a Hibernate Module (This will take a Fair deal of configuration via. XML files - the coding is not as much though) - apparently there is a tool that does the configurations for you - its called Middlegen) The Hibernate Modules connect to the Database, and a simple session.save(something); writes to the database table the appropriate object. It is quite a bit of work, probably the hardest bit being the XML mappings if you are to generate them yourself. I'd suggest you work on each communication level separately e.g. Make sure that your Applet and Servlet can interchange data before you move onto Servlet - Hibernate communication, etc... For Applet Servlet Communication refer to: http://www.unix.org.ua/orelly/java-ent/servlet/ Good luck
|
|