Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing and Web based application

 
Michelle Joe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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.
cheers,
Chantal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic