Dowload Netbean6 from http://netbeans.org
glassfish tips:
Start Server:
asadmin start-domain domain1
Stop Server:
asadmin stop-domain domain1
Deploy war:
Copy hello.war to install-dir/domains/domain1/autodeploy/
Create sun-rescources.xml if you want to use connection pool,jndi for JMS. this could be customized by http://localhost:4848
Entity, Session bean for facade,Message-driven bean for executing the persistence action for entity bean.
Hibernate3 EntityManager+Mysql
And the source code is attached,And the libs also listed in picture. after that,you just copy those libs to glassfish/lib.