File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Swing and Web based application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing and Web based application" Watch "Swing and Web based application" New topic

Swing and Web based application

Michelle Joe

Joined: Oct 29, 2002
Posts: 11
i m totally new in Swing. I've been assigned to do 2 projects which are web based and desktop applicaton (Using Swing).
i m just curious is it possible that these 2 applications sharing the same database?
It means Web based application will serves as User Interface for user to input in the details
while desktop application will connect to the database and manipulate the data which input earlier.
Do you have some recommendation where i suppose to start to look for such information because i really stuck with it.
Thanks in advance.
[ March 19, 2003: Message edited by: Michelle Joe ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

You can have a million applications sharing the same database. And any of those can be Web Bases, Desktop App, whatever. It doesn't matter.
The database doesn't care who or what is accessing it. It is just handling read/write requests.

GenRocket - Experts at Building Test Data
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
you can build a backend that accesses the database and provides an API to all clients. Thus, you will have to implement the backend logic only once, while you can provide different frontends for different needs. Moreover it is a security risk to open the database to any application. it is better to have only one backend in control of the database that manages the requests for the clients.
Servlets or - for the big case - Enterprise JavaBeans are standard technologies for such client-server projects.
I agree. Here's the link:
subject: Swing and Web based application
It's not a secret anymore!