Can I use the Berkeley DB Java API from within a EJB, a Servlet or a JSP page?
Yes. The Berkeley DB Java API can be used from within all the popular J2EE application servers in many different ways. • During one of the first calls to the Berkeley DB Java API, a DbException is thrown with a “Bad file number” or “Bad file descriptor” message. There are known large-file support bugs under JNI in various releases of the JDK. Please upgrade to the latest release of the JDK, and, if that does not solve the problem, disable big file support using the –disable-largefile configuration option. • How can I use native methods from a debug build of the Java library? The Berkeley DB Java code checks a system property for the library name before defaulting to the released library. On Windows, run as follows (note the ‘d’ at the end): % java -Dsleepycat.db.libname=libdb_java-VERSIONd On UNIX, try: % java -Dsleepycat.db.libname=db_java_g-VERSION • Why is ClassNotFoundException thrown when adding a record to the database, when a SerialBinding is used? This problem occurs if you co