OK, I found it. My subject line had the correct syntax; Query.createNewQuery("select max(m.recId) from RecordsEjb m"); Ken View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138378#4138378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138378