这是我前台的连接方法也不知道对不对
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());
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());
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; }