I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish (3.01). But, as I have no idea about Ejb, I am not getting how to run the code which includes a simple Statefull Session Bean, a jsp page and a back end database. For example, I found some example code like this code or many shopping cart examples. Can any body help me by giving a step by step procedure how to run it . Or can anybody suggest a nice tutorial or book which shows step by step procedure along with code how to implement examples like those. If it is shown in any other platform, it will be perfectly OK for me. Thanks in advance.