File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes several desktop apps connected to one MySql db Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "several desktop apps connected to one MySql db" Watch "several desktop apps connected to one MySql db" New topic
Author

several desktop apps connected to one MySql db

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i'm not sure if this is the right place, so here i go
i'm very new to java (just finished understanding interfaces), but i like to dream.
Actually i'm developing a web application ( with php+MySql+Apache) where users fill lots and lots of forms. Those values are stored in Mysql. Other users will work on that data, editing, updating or deleting it, and then fill other forms.
I know for sure that i've to understand oop basics, command line JDBC and swing to make this kind of functionality with java in a desktop app.
i gave a look at jdbc and it looks quite easy to me.
i also studied a sun java tutorial about building a gui interface (DiveLog tutorial) with read/write from files, check boxes, text area, buttons and so on.
So my Q is: what kind of another technology will i need to master in order to have an equivalent aplication, but in this case with desktop interface instead of web browser?
Can i simply connect the various desktop apps (all identical - one per computer), in diferent machines, to the same MySql database without further things (like web services or RMI (not sure exactly what this is)...)?
Thanks in advance
[ February 21, 2004: Message edited by: miguel lisboa ]

java amateur
Ramiro Santos
Greenhorn

Joined: Feb 19, 2004
Posts: 2
Oi!
N�o � aconselhavel conectares o cliente java directamente � DB mysql. Devias usar um servidor java e fazeres as query necess�rias atrav�s de RMI. RMI permite, de maneira simples, de executar fun��es java situadas num servidor remoto.
Assim, o cliente conecta-se ao servidor e executa as fun��es necess�rias. Isto permite mais seguran�a, facilidade de implementa��o e � mais OO. Todo o c�digo JDBC (tens de arranjar um conector JDBC mysql de qq forma) fica no servidor e o cliente excuta fun��es que devolvem classes com os dados de que precises.
Espero que ajude
Ramiro
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: several desktop apps connected to one MySql db
 
Similar Threads
several desktop apps connected to one MySql db
Tomcat Classloader - load different versions of a jar
Where to start? Web, data & Java
determining OS
Rich Internet Applications