可以 了
================================================================
[email protected] 
================================================================

解决方案 »

  1.   

    利用jbuilder的新建,在Enterprise java bean的模版中选择test client,系统会自动生成一个客户端的测试程序,前提是你的weblogic已经部署成功!
      

  2.   

    我现在能在本机上实现EJB,但是我不知道如果把client拿到另外的机子上运行,那么我该作些什么?请指教?
      

  3.   

    下面是weblogic自带的一个例子,EJBC返回的客户端jar是ejb20_relationships_bands_client.jar,客户端只有一个类examples.ejb20.relationships.bands.Client。运行命令和结果如下:
    java -cp ejb20_relationships_bands_client.jar;./  examples.ejb20.relationships.bands.Client t3://localhost:7001We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    Unable to look up the home: Cannot instantiate class: weblogic.jndi.WLInitialCon
    textFactory
    但是只要把weblogic.jar加入到类路径中就可以正常运行!!
    weblogic.jar有32MB,不可能要把它老人家总带着吧,那客户端瘦的起来吗.
    是不是有个客户端必须加入类路径的最小的jar存在?