Is there a JDBC driver for Berkeley DB? If there is one, it should work now. If not, I you'll have to wait until Jboss 4.0 for support.
MySQL includes Berkeley DB as table handler, and it also has a good JDBC driver. We use it for a our production system (together with JBoss) and it's very reliable and performs good.