enterprise_java_beans thread: EJB make Error?help me!thank you.
What about the remote interface methods?
-----Original Message-----
From: toxin [mailto:toxin@b...]
Sent: Tuesday, July 16, 2002 4:16 AM
To: Enterprise Java Beans
Subject: [enterprise_java_beans] EJB make Error?help me!thank you.
i had use jbuilder to create an Entity EJB project,then ,i add a method
to
this EJB:
1,add this home interface method to Toxin1Home.java:
public Toxin1 delRecord() throws RemoteException,CreateException;
2,add this method to Toxin1Bean:
--------------------------------start-----------------------------------
---
public void ejbDelRecord() throws CreateException {
Connection conn =3D null;
ResultSet rset =3D null;
try{
conn =3D DriverManager.getConnection
("jdbc:oracle:thin:@192.168.0.37:1521:toxin","system","manager");
Statement stmt =3D conn.createStatement();
stmt.executeUpdate("DELETE FROM toxin WHERE name =3DBill");
System.out.println("=C9=BE=B3=FD=B3=C9=B9=A6");
}
catch(SQLException e){
System.out.println("Error");
}
finally{
try{
if (rset !=3D null){
rset.close();
}
if (conn !=3D null){
conn.close();
}
}
catch(SQLException ee){
System.out.println("=B9=D8=B1=D5=B3=F6=B4=ED");
}
}
}
----------------------------end------------------------------
"student2.ejbgrpx": ERROR: Error from ejbc:
"student2.ejbgrpx": In EJB Toxin1, the home method delRecord() was
defined
in the home interface, but a matching ejbHomeDelRecord() method was not
found on the bean class.
"student2.ejbgrpx": ERROR: ejbc found errors