N
Nachiketh
hi,
i wrote a test bean to deploy under jboss, when i compiled hte bean
file, the following errors were encountered.. if anyone can help me
debug this code.
code :
import javax.ejb.*;
import java.rmi.RemoteException;
public
interface EJBTestBean implements SessionBean {
private SessionContext mContext = null;
public void ejbPassivate() {
System.out.println("EJBTestBean passivated.");
}
public void ejbActivate() {
System.out.println("EJBTestBean activated.");
}
public void ejbCreate() {
System.out.println("EJBTestBean created.");
}
public void ejbRemove() {
System.out.println("EJBTestBean removed.");
}
public void setSessionContext() {
System.out.println("EJBTestBean context set.");
mContext = context;
}
public String greet()
{
return "Hello, I'm an EJB!";
}
}
error:
D:\Project\EJB\EJBTestBean.java:7: '{' expected
interface EJBTestBean implements SessionBean {
^
D:\Project\EJB\EJBTestBean.java:39: '}' expected
^
2 errors
process javac exited with code 1
thx,bye
-nachiketh
i wrote a test bean to deploy under jboss, when i compiled hte bean
file, the following errors were encountered.. if anyone can help me
debug this code.
code :
import javax.ejb.*;
import java.rmi.RemoteException;
public
interface EJBTestBean implements SessionBean {
private SessionContext mContext = null;
public void ejbPassivate() {
System.out.println("EJBTestBean passivated.");
}
public void ejbActivate() {
System.out.println("EJBTestBean activated.");
}
public void ejbCreate() {
System.out.println("EJBTestBean created.");
}
public void ejbRemove() {
System.out.println("EJBTestBean removed.");
}
public void setSessionContext() {
System.out.println("EJBTestBean context set.");
mContext = context;
}
public String greet()
{
return "Hello, I'm an EJB!";
}
}
error:
D:\Project\EJB\EJBTestBean.java:7: '{' expected
interface EJBTestBean implements SessionBean {
^
D:\Project\EJB\EJBTestBean.java:39: '}' expected
^
2 errors
process javac exited with code 1
thx,bye
-nachiketh