Deploy EJB2.0 On GlassFish V2.1

本文分享了在GlassFish上部署EJB并编写客户端使用的经验。作者遇到的问题主要是EJB未找到或JNDI名称未绑定到任何类。解决办法是手动创建sun-ejb-jar.xml文件。

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

    I write a simple ejb to test how to deploy ejb on glassfish and how to write a client to use it.but when i try to use the ejb,it said the ejb can not be found or the jndi name are not bound to any class.finally i found if i want to bound a jndi name to a ejb on glassfish,i must write a sun-ejb-jar.xml file manually.

    By the way,we can not see the out put on console when we use glassfish V2.1 The output is written to C:/glassfish/domains/domain1/logs/server.log

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值