Ejb Code with NetBeans and GlassFish

2019-07-13 07:13发布

问题:

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. Thanks in advance.

回答1:

Try this tutorial, it uses Glassfish and Netbeans for creating a sample JEE6 application with EJBs.