
Hi Friend,
Differences:
1) EJB is a distributed component model for developing secure, scalable, Transactional and multi user component while Servlets are the server side components.
2)EJB Applications run on only Application Servers while Servlet run on web/application servers.
3)EJB allows Remote Accessing while Servlet does not allow remote accessing
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.