web application和EJB发布在同一个weblogic服务器上,应该是在同一个虚拟机上吧,真的不好用?

解决方案 »

  1.   

    If in the same JVM, it is determined the deployment method. You use directory or ear files? If in the same ear file, you can. If you use directory, you can not.
    The error is NameNotFoundException, and you JNDI name is 'app/ejb/dealproducetask.jar#producetaskcontrol/local-home', so you can not call local interface.
    For details, ref to weblogic training materials or online doc.
      

  2.   

    同一楼上的,事实上,the same jvm不是说同一个weblogic这种概念
    如果你打成ear,并且在web.xml中声明了ref-local-name那么就ok
      

  3.   

    原来如此,我一直不明白使用ejb-ref后,连接ejb与不使用ejb-ref有什么不同。现在终于明白一些了。
    local接口的ejb-ref可以标识为同一jvm,然后互相调用,那么remote接口的ejb-ref有什么用?
      

  4.   

    我从来没有用过ejb-ref也挺好的,不知道到底用了有什么好处?