Bean : SomeEJB Method : public abstract returnType methodName(parameters) throws RemoteException,... Section: 7.10.5 Warning: The methods defined in the remote interface must have a matching method in the bean's class with the same name and same number and types of arguments.
Friday, June 27, 2008
When you deploy, jBoss automatically checks the structural integrity and Specification compliance of the JAR file. If this check fails, the JAR has not been deployed. The error messages are relatively helpful; for example:Not only has jBoss detected a violation of the EJB Specification, it has indicated which section of the Specification to look at (7.10.5 in this case). If you see messages like this, you need to correct the code. However, jBoss doesn't say what is the exact difference between the remote interface (usually called SomeService.java) and the bean definition (usually called SomeBean.java). Check all of the following: the method name, the type of its parameters, the list of exceptions it throws and its scope. Here is how it should be usually:
Posted by Unknown at 9:26 AM