Applet to Servlet Communication

I'm trying to write a database aware applet that does not depend on the JDBC/ODBC bridge (as each client would need ODBC installed). Are there any code examples of how to actually do this ?

Any help much appreciated !
gngAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

heyhey_Commented:
use pure JDBC driver.
read the JDBC tutorial at www.javasoft.com

.... and so on .. (you'll get hundered of links very soon)
0
gngAuthor Commented:
A pure Java driver would be a solution but financially is not possible. I am familiar with the types of java database drivers around. It's the way to do it but to many $$$. I'd really like an example of where a servlet makes the db interactions but the clients (running an applet in a browser) can interact with the servlet. By using this approach, you have complete control on the servlet implementation (using the cheap [free] JDBC/ODBC bridge. Thanks again !
0
heyhey_Commented:
I just saw you question title inside the e-mail notification (you don't mention the word 'servlet' inside your question at all)

check the RMIJdbc driver for a very quick solution:

http://dyade.inrialpes.fr/membres/gibello/
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

blairdyeCommented:
Hi,
I assume you just want to know about the communication itself and not the db implementation. Here is a link:
http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
If you have a bit of experience with the streams library then its all very straight forward. I guess the simplest thing would be to send your result set as an ObjectOutputStream.
Hope this helps.
Blair
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ravindra76Commented:
Hi gng,

 If you want cost effective solution,

1. Write all the database code in java servlets. If you want free webserver,use apache web server. Other wise you can buy any webserver capable of running servlets

2.Call servlets from applets through URLConnection class.
 Use parameters to call different functions of same servlet.

In servlets, you can use any jdbc driver types ( 1,2,3,4 i.e jdbc-odbc bridge also)

Best of luck
0
vladi21Commented:
gng - r u still have questions?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.