error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top