I have this error:
12:14:24,943 WARN [verifier] EJB spec violation:
Bean : FinderIndexHome
Method : public abstract FinderIndex create() throws CreateException, RemoteException
Section: 6.10.6
Warning: The method return values in the home interface must be of valid types for RMI/IIOP.
When I try to return a "FinderIndex" RemoteInterface because JBOss thinks that my
RemoteInterface is in violation of a spec. The remote Inteface causing the problem
looks like this:
public interface FinderIndex extends EJBObject {
public static final Integer SUPPLIER = new Integer(0);
public DBData getPricingDepartureCities(boolean useCache) throws Exception, RemoteException;
}
I can fix the problem by removing the public static final line.
I can also fix the problem by changing the line so that the remote interface looks
like this:
public interface FinderIndex extends EJBObject {
public static final int SUPPLIER = 0;
public DBData getPricingDepartureCities(boolean useCache) throws Exception, RemoteException;
}
My question is:
1) why is the FinderIndex an invalid type for RMI/IIOP (what part of what spec is being violated?)
2) why is it fixed when i change the public static final variable from an Object to a primitive type?
Does anyone know? Is this correct behaviour?
Tom