Glassfish V2 And NetBean6

本文介绍如何使用NetBeans 6下载及配置GlassFish服务器环境,包括启动和停止服务器、部署WAR文件等步骤。还涉及如何创建sun-resources.xml文件以使用连接池和JNDI配置,并介绍了实体Bean、会话Bean以及消息驱动Bean的概念。此外,还提供了使用Hibernate 3和MySQL进行持久化的示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值