在wszs50开发调试 sessionbean通过本地接口调用实体bean,提示本地接口找不到

来源:互联网  时间:2016/8/26 12:23:20

关于网友提出的“ 在wszs50开发调试 sessionbean通过本地接口调用实体bean,提示本地接口找不到”问题疑问,本网通过在网上对“ 在wszs50开发调试 sessionbean通过本地接口调用实体bean,提示本地接口找不到”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 在wszs50开发调试 sessionbean通过本地接口调用实体bean,提示本地接口找不到
描述:

调用代码:
initialContext initialContext = new InitialContext();
Object homeObject = initialContext.lookup("java:comp/ejb/customer");
CustomerLocalHome helloWorldEntityLocalHome = (CustomerLocalHome)homeObject;
ejb-jar.xml:



CustomerProjectEJB


Customer
helloworld.ejb.CustomerLocalHome
helloworld.ejb.CustomerLocal
helloworld.ejb.CustomerBean
Container
helloworld.ejb.CustomerKey
False
2.x
Customer

id


name


money



customer
Entity
helloworld.ejb.CustomerLocalHome
helloworld.ejb.CustomerLocal
Customer



CustomerSession
helloworld.ejb.CustomerSessionHome
helloworld.ejb.CustomerSession
helloworld.ejb.CustomerSessionBean
Stateless
Container



ibm-ejb-jar-bnd.xmi:


  
    
    
      
    
    
  
  
    
  

上一篇高手请进,在线等待
下一篇本人在广州,现有一项目B/S
明星图片
相关文章
《 在wszs50开发调试 sessionbean通过本地接口调用实体bean,提示本地接口找不到》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)