• Post Reply Bookmark Topic Watch Topic
  • New Topic

New to EJB how to start  RSS feed

 
manishkumarlal cs
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to learn EJB,i have prior knowledge of core java only.
I dont know Servlets/JSP.Is it necessary to know servlets and JSP before going for EJB,if yes then to what extent.

Regards
Manish
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi manishkumarlal,

From a development perspective you don�t need to know JSP/servlets in order to implement EJBs. From a learning experience I would say that you should. If you come from a client-server background and switch to n-tier/distributed architecture, there is a lot of difference. If I were you I�d try to become familiar with the request/response application model using the easiest and most approachable environment. As you might guess a web server is much friendlier than an EJB container. In a way jumping to EJB-centric architecture is like trying to learn differential calculus without learning the times table first. The learning process should follow clear steps in order to be effective. Skipping any of them might have a very bad impact. To conclude I�d say that you should dedicate couple of weeks of your time and learn and run some web-centric application samples. In my opinion your time will be wisely spent. Besides if you�ll find this first experience little bit difficult (and believe me for most of beginners it is not trivial) than multiply it by 100 and you�ll have an idea about what to expect when learning EJSs.
Regards.
 
Scott Selikoff
author
Bartender
Posts: 4081
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd also like to add, when it comes to EJBs, forget almost everything you know about java (j/k). Although EJBs are built out of Java and XML files, the concepts behind EJBs are nothing like coding a program in java.

I like the book Head First EJB for beginners. Keep in mind though that EJBs are more related to abstract concepts than individual pieces of code. You can't really understand any EJB by looking at one individual file, you need to consider them all as a whole.

Oh, and as side note some concepts of EJBs to me resemble C++ rather than java. For example, every bean class must have an interface reminds me of .cpp and .h files in c++.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!