首先,你的CMP是LOCAL接口还是REMOTE接口?
其次,成功部署是DEPLOYED=TRUE,你TRUE了么?
第三,你的客户端如何写的?最后,写得太不详细了,完全不知道你的状况

解决方案 »

  1.   

    现在又有问题来了,我实验一个session bean+entity bean的例子,数据库用的是jdatastore,连接测试成功,make通过后,deploy不能成功,DEPLOYED=FALSE,服务端的输出是
    Unable to deploy EJB: Employee from TestEntMod.jar:weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI
    name: EmpDataSource could not be located. Please ensure that the
    DataSource has been deployed successfully and that the JNDI name in
    your EJB Deployment descriptor is correct.但是我建立的Tx Data Source的JNDI name 确实是DemoDataSource,况且在employee的weblogic 6.x general 面板中的Data Source Name 就是DemoDataSource,不知道为什么还抱这个错误,我真是没有办法了,郁闷死了!请指教!谢谢!
      

  2.   

    你的问题不是问题, 看看这个,到底怎么回事?
    关于 Session Bean 有个问题,   会话BEAN被页面调用后,执行任务, 比如 查询数据,
       
       若此时 WEB页面立刻关闭,跟踪日志发现,后台会话BEAN的任务仍然在继续,   继续地 耗费资源,   按合理的逻辑,此会话BEAN 也应该终止任务,释放资源,消失掉。但事实却相反。   亟需解决的问题。
      

  3.   


    要知道 这个会话BENA 里做了好些事情, 循环呀,创建对象啦。
    前端页面点10下,就要执行10次,晕到!是设计的问题?!
    ----------------------------------
    借光呀  :|
      

  4.   

    EmpDataSource could not be located??
    不太清楚你的empdatasource是什么
      

  5.   

    不好意思搞错了,报的错误是这样的:weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: DemoDataSource could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
      

  6.   

    对于问题1:client对象不让调用方法create,findPimaryKey
    我从worldheart那里学到的方法为:找到
     helloHome = (HelloHome) PortableRemoteObject.narrow(ref, HelloHome.class);
    写下:
          helloHome.create();
         Hello hello = helloHome.create();
         System.out.print(hello.SayHello());
    成功了具体原因我也不知道...
      

  7.   

    client端不让调用create与findByPrimaryKey方法,你在你的Bean的Home接口里面实现了这些方法吗?还有你的错误到底是什么,应该告诉别人。还有你的英文错字很多,有时候会让人产生误会的,就想把Demo写成Emp一样的,出来提问题的,最好还是写的小心点,规范点,这样别人才能解决你的问题。