I have an EJB returning a list of my own ValidationMessage
objects:
@Remote
public interface Intf {
List<ValidationMessage> validateFile();
}
I'm generating EJB client JAR with weblogic's appc utility. The problem is that it does not include ValidationMessage
class into the client JAR. Perhaps it does not see the dependency to this class because it only looks at the compiled code, when generic information is already erased.
If I add another dummy method, which returns this class directly, to the interface, everything is fine.
@Remote
public interface Intf {
List<ValidationMessage> validateFile();
ValidationMessage dummy();
}
My question is: is there a way to fix this without adding a dummy method? Is there a way to control what gets included by appc in the client JAR?