1. JBossQL doesn't support MAX;
2. Finder methods must return either local interface or collection of local interfaces;
3. to make getMaxKey a home method, you should call it ejbHomeGetMaxKey and mark it as @ejb.home-method.
Great! Thanks for your quick response!
I'm going to try it out now.