yes it is possible, JBoss AS 5 uses JBC 3.0.1 with Hibernate for its JPA implementation. For an example of the configuration used, have a look at the JBoss AS 5 distribution.
Any chance to make it work on JBoss 4.x too ? I'm afraid in my case it's not yet an option to upgrade the application server.
Depends - how are you using Hibernate?
1) Indirectly, by using EJB3 entities in JBoss AS 4.x?
2) Directly, by packaging Hibernate jars in your WAR or EAR?
If the answer is (1) then there is nothing you can do, I'm afraid. If it is (2), then you can package JBC jars with your app as well and you can use it with Hibernate. You can refer to the JBoss AS 5 config files as an example.
Sorry for the late reply, but I was off the project for some time...
We apparently put the whole lot of jars into the application. So the options are open.
I've had a brief trial with ehcache to make its cache distributed as this is the current cache provider of the application. The weird thing is that the cache works standalone but not when it is part of a deployed application.
Error doing put to remote peer. Message was: Connection refused to host 127.0.0.1;...
Is there an RMI setting of some kind I need to change to have ehcache work ? I've tested firewall ao and it all seems ok.
Moving this to the core cache forums since it has nothing to do with pojo cache.
Also, if you have ehcache problems, ask the ehcache guys, these forums are for jboss cache related discussion.