hi!
i am a biginer to
ejb.
i have downloded the ejbtutorial from this site and trying to learn some thing from it
in this tutorial i have to make three files
DemoHome.java
**************************************************
package ejb.demo;
import javax.ejb.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;
public interface DemoHome extends EJBHome {
public Demo create() throws CreateException, RemoteException;
}
**************************************************
Demo.java
**************************************************
package ejb.demo;
import java.rmi.RemoteException;
import java.rmi.Remote;
import javax.ejb.*;
public interface Demo extends EJBObject, Remote {
public
String demoSelect() throws RemoteException;
}
**************************************************
DemoBean.java
**************************************************
package ejb.demo;
import javax.ejb.*;
import java.io.Serializable;
import java.util.*;
import java.rmi.*;
public class DemoBean implements SessionBean {
static final boolean verbose = true;
private transient SessionContext ctx;
private transient Properties props;
public void ejbActivate() {
if (verbose)
System.out.println("ejbActivate called");
}
public void ejbRemove() {
if (verbose)
System.out.println("ejbRemove called");
}
public void ejbPassivate() {
if (verbose)
System.out.println("ejbPassivate called");
}
public void setSessionContext(SessionContext ctx) {
if (verbose)
System.out.println("setSessionContext called");
this.ctx = ctx;
props = ctx.getEnvironment();
}
public void ejbCreate () {
if (verbose)
System.out.println("ejbCreate called");
}
public String demoSelect()
throws RemoteException
{
return("hello world");
}
}
**************************************************
but when i try to compile them ithe two classes Demo.java,DemoBean.java are compiled correctly but
javac DemoHome.java
gives me following the error
cann't resolve symbol Demo
i have correctly set all the path and classpath varibles and still i m wondring that y it isn't working.
can anybody plz help me to slove this problem.