criteria « JBoss « JPA Q&A

1. JPA 2 in Jboss and criteria api

Is there a working JPA 2 implementation for JBoss server? Or maybe there is some additional extension that provides JPA 2's criteria api equivalent?

2. Jboss tree cache and Criteria API

Hello, I would like to know if it is possible to cache in the second level, objects which are retrieved by criteria API ? I have a table which contains parameters and i would like to cache it, i am using hibernate 3 with jboss 4.2 and transactional jbosstreecache. Thanks for your help, Regards,