• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with CalcHome.java interface

 
Jose Cardoso
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !
Iam stack with this code:
package Beans;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
import javax.ejb.*;
import java.rmi.*;

public interface CalcHome extends EJBHome {
Calc create( ) throws CreateException, RemoteException ;
}

I can't use the method Calc create( ) throws CreateException, RemoteException ; because it gives me the following error:

cannot resolve symbol class Calc.
here is the interface Calc:
package Beans;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface Calc extends EJBObject {
public double calcBonus(int multiplier, double bonus)
throws RemoteException;

}
can anybody help ???
Pleaseeeeeeeeee..
Jose
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is an EJB question. I am going to move this thread to the EJB forum.
Thanks and good luck
Mark
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This probably has nothing to do with your problem, but I'd suggest using lowercase characters in package names as everyone else does. Some J2EE servers have been reported to have problems dealing with CapiTal.paCkage.names...
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the code that the exception occurs in and post part of the stack trace too?
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic