If you have your NetBeans installed it is best for you to learn about EJB on javaee6 tutorial as all examples there are done on NetBeans IDE. To use EJB you will also have
to install server. Javaee6 tutorial recommends Glassfish server.
You should use updatetool to install examples. You can find updatetool in such places:
1. Start -- All Programs -- Java EE 6 SDK -- updatetool, start application server, stop application server, uninstall. Click updatetool menu item
2. On path http://localhost:4848/. On left sidebar there is a list with title 'Common Tasks'. The last item there is Update Tool. Click on it
In both cases when you are in Update Tool you should click on tab 'Available Add-Ons' or 'Available Updates' and look for 'javaee-tutorial' item in column 'Component'.
Select check box next to this item and click 'Install' button which is above.
Then look for installed tutorial! Maybe path will be slightly different.
P.S For option 2 you must start glassfish server at first. For that go to folder glassfish3/bin and then open asadmin file and type -
Joined: Sep 24, 2012
Thanks Volodymyr Levytskyi.
I have some generic querys like.
1) which one is better ejb 2.1 or ejb 3.0? just confused.
2) which book should i go for ?
To my mind it is better to start studying javaee with great book on Servlets and JSP! Then you can procede to something like Struts or JSF.
Anyway the best is to start with good foundation about constructing a site. I think that Servlets and JSP, JSTL, SQL is just what future web java developer should start with,
because it is basics for learning more advanced technolgies like struts or jsf.
EJB is business logic of web site. Model of web site is represented by entities which map java classes to tables in database(SQL). Finally view part of site is JSP, JSTL, CSS
Best to study is to take serious, large book with many examples. The more examples you understand the better!