Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

My First EJB

  Asked By: Joel    Date: Jan 27    Category: Java    Views: 736
  

I get one EJB example for test with JBOSS, but I have a compile success only
Bean and Remote Interfaces,
with HOME Interface, when I compile (javac InteresesHome.java), show this
error :

InteresesHome.java:7: cannot resolve symbol
symbol : class Intereses
location: interface InteresesHome
Intereses create() throws RemoteException, CreateException;
^
1 error

What is the Problem ?

Java Version : j2sdk1.4.1_01 AND j2sdkee1.3.1

--------------------------- InteresesHome.java---------------------------
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import java.rmi.RemoteException;

public interface InteresesHome extends EJBHome {
Intereses create() throws RemoteException, CreateException;
}
----------------------------------------------------------------------------

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Alisha Johnson     Answered On: Jan 27

Can you check if the Remote interface  has been named
as InteresesRemote.java?

If you have named it so, change the Remote interface
to Intereses.java...

or change you Home interface to

public interface InteresesHome extends EJBHome {
InteresesRemote create() throws  RemoteException,
CreateException;
}

 
Didn't find what you were looking for? Find more on My First EJB Or get search suggestion and latest updates.




Tagged: