JSP能直接调用EJB么?我怎么只听说要写个JB来转调EJB啊:)

解决方案 »

  1.   

    JSP当然能直接调EJB了你把
    h.put(Context.SECURITY_PRINCIPAL,"system");
    h.put(Context.SECURITY_CREDENTIALS, "21098031");
    两句去掉试试
      

  2.   

    1 jsp调用ejb只需要
      Context ctx=new InitialContext();
      不需property
    2  ConverterHome home =(ConverterHome)PortableRemoteObject.narrow(objref,ConverterHome.class); 
      Converter currency = (Converter) PortableRemoteObject.narrow(home.create(), Converter.class);
      这两句错误,必须写上package名
          
      

  3.   

    请问在那写上package名,例如在Converter前还是在Converter.class前?