Swing and Web based application

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 ]

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.

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