Click to See Complete Forum and Search --> : Writing/Reading MySQL database


rvazquez
02-19-2008, 03:21 AM
I’d like to perform basic writing/reading operations into a MySQL database, both in JAVA and in Javascript.

Comments/Sample code/Any points of departure welcome.

Thanks,
Ruben

bathurst_guy
02-19-2008, 04:22 AM
Not possible with JavaScript as it is running on the client and MySQL is running on the server. I don't know enough about Java to comment.

chazzy
02-19-2008, 07:07 AM
at a very low level, java uses JDBC. There are frameworks around that automate this process even more - Open JPA, Hibernate, Toplink. Most app servers come with a persistence provider built in - JBoss and JOnas use Hibernate, Oracle uses Toplink (same company) and I believe IBM and BEA (Kodo) have their own internal systems.

Hibernate's fairly widely used since it's very portable. JPA was actually modeled based on Hibernate.

Edit: Sorry, can't forget iBatis!