TopCool
Miracle
CJSDN高级会员
发贴: 253
积分: 10
|
于 2003-06-11 09:06
hehe谢谢,已经没有这个问题了,但是又有了一个问题 D:\Temp\jboss\testejb\client>java InterestClient Got context javax.naming.NameNotFoundException: comp not bound
09:09:48,799 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.6/server/ default/deploy/testejb.jar
看,我得ejb么已经部署上去了
这是我得jboss.xml <?xml version="1.0" encoding="UTF-8"?> <jboss> <enterprise-beans> <session> <ejb-name>Interest</ejb-name> <jndi-name>interest/Interest</jndi-name> </session> </enterprise-beans> </jboss>
这是ejb-jar.xml <?xml version="1.0" encoding="UTF-8"?>
<ejb-jar> <description>JBoss Interest Sample Application</description> <display-name>Interest EJB</display-name> <enterprise-beans> <session> <ejb-name>Interest</ejb-name> <home>org.jboss.docs.interest.InterestHome</home> <remote>org.jboss.docs.interest.Interest</remote> <ejb-class>org.jboss.docs.interest.InterestBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Bean</transaction-type> </session> </enterprise-beans> </ejb-jar>
comp是什么意思,请教~~
|