这是我前台的连接方法也不知道对不对
if (e.getSource() == button21)
{ IlookUp mModule = (IlookUp) NCLocator.getInstance().lookup(IlookUp.class.getName());
Collection c = mModule.LookUpMessage(textField21.getText());
Object[] objs = c.toArray();
if (objs != null && objs.length > 0)
{
AddVo vo = (AddVo) objs[0];
textArea21.setText(vo.getSuccess());

解决方案 »

  1.   

    这是一个后台的方法
    public Collection LookUpMessage(String name) throws BusinessException
    {
    AddVo ao = new AddVo();
    BaseDAO dao = new BaseDAO();

    ao.setName(name);
    Collection co = dao.retrieve(ao, new AddMeta());
    System.out.println(ao);
    return co; }
      

  2.   

    哎,思想老是转遍不过来,真痛苦啊!我以前是做WEB的,现在忽然做上GUI了总感觉脑子一片混乱!