Difference between Servlet, EJB JDBC

I need to know the exact difference.....what a servlet cannot do and EJB can do... Pls explain me in detail....I would appereciate you if u give me a quick response..........

You first note that Servlets are serverside programs. Applets are to clients in such as way servlets are to server. They are typical java programs which must extends and implements some of the javax.servelet... packages.

But, EJB is Enterprice Java Beans are middleware components. They are not Java Beans. They can be used as a reusable components.

Consider, A database contains data, EJB beans contains datasturctures and logic that will handle the database resources. Servlets can access the database either directly or using a middle such EJB or CORBA. This entire process involves RMI (Remote Method Invocation).

Venkatesh

I am sushma and new learner about java, could you please help me, the clear picture about servlets and jdbc.

Well. Servlets is the Server Side Technology. (One of the core components of J2EE). Like what Applets are in the client sides, Servlets are in the Server side. You can do whatever you want to be done in the SERVER Side with the Servlets.
Still if you are not clear, in case of Validation. For the client side validation you can use JavaScript or Applets. Like the same side if you want to do in the Server Side, you can go for Servlets. Its nothing but a Java program which can run only with the help of a Web or Application Server since being a component, it has to be dealt with its own dedicated APIs, which the Servers (Web or App) are aware and know to handle.

JDBC stands for Java DataBase Connectivity. Its used to connect with a (any) database through the Java code. There are four types of Drivers namely Type1, Type 2 , Type 3 and Type 4 drivers. They differ in the way they are implemented like native, pure java etc etc...

Hope you got some info abt what you asked.
Most welcome for further clarifications as well as queries.

I wish all the members a very Happy and Prosperous New Year.

Take Care.
Raghavan alias Saravanan M.

Do you have a Java Problem?
Ask It in The Java Forum

Java Books
Java Certification, Programming, JavaBean and Object Oriented Reference Books

Return to : Java Programming Hints and Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.