⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: faq.so,v 1.16 2007/07/11 11:13:30 mjc Exp $])m4_ref_title(Java API,    Java FAQ, [Java @FAQ, Java FAQ], java/program, arch/bigpic)m4_nlistbeginm4_nlist([dnlm4_bold([On what platforms is the m4_db Java API supported?])m4_p([dnlAll platforms supported by m4_db that have a JVM compatible with J2SE1.4 or above.])])m4_nlist([dnlm4_bold([How does the m4_db Java API relate to the J2EE standard?])m4_p([dnlThe m4_db Java API does not currently implement any part of the J2EEstandard.  That said, it does implement the implicit standard for Javam4_linkweb(http://java.sun.com/j2se/1.5.0/docs/guide/collections/,dnl[Java Collections]).  The concept of a transaction exists in severalJava packages (J2EE, XA, JINI to name a few).  Support for these APIswill be added based on demand in future versions of m4_db.])])m4_nlist([dnlm4_bold([How should I incorporate db.jar and the db native library intoa Tomcat or other J2EE application servers?])m4_p([dnlTomcat and other J2EE application servers have the ability to rebuildand reload code automatically.  When using Tomcat this is the case when"reloadable" is set to "true".  If your WAR file includes the db.jar ittoo will be reloaded each time your code is reloaded.  This causesexceptions as the native library can't be loaded more than once andthere is no way to unload native code.  The solution is to place thedb.jar in $TOMCAT_HOME/common/lib and let Tomcat load that library onceat start time rather than putting it into the WAR that gets reloadedover and over.])])m4_nlist([dnlm4_bold([Can I use the m4_db Java API from within a EJB, a Servlet or aJSP page?])m4_p([dnlYes.  The m4_db Java API can be used from within all the popular J2EEapplication servers in many different ways.])])m4_nlist([dnlm4_bold([During one of the first calls to the m4_db Java API, aDbException is thrown with a "Bad file number" or "Bad file descriptor"message.])m4_p([dnlThere are known large-file support bugs under JNI in various releasesof the JDK.  Please upgrade to the latest release of the JDK, and, ifthat does not solve the problem, disable big file support using the--disable-largefile configuration option.])])m4_nlist([dnlm4_bold([How can I use native methods from a debug build of theJava library?])m4_p([dnlSet Java's library path so that the debug version of m4_db's Javalibrary appears, but the release version does not.  m4_db tries to loadthe release library first, and if that fails tries the debug library.])])m4_nlist([dnlm4_bold([Why is ClassNotFoundException thrown when adding a record tothe database, when a SerialBinding is used?])m4_p([dnlThis problem occurs if you copy the db.jar file into the Java extensions(ext) directory.  This will cause the database code to run under theSystem class loader, and it won't be able to find your applicationclasses.])m4_p([dnlYou'll have to actually remove db.jar from the Java extension directory.If you have more than one installation of Java, be sure to remove itfrom all of them.  This is necessary even if db.jar is specified in theclasspath.])m4_p([dnlAn example of the exception is:])m4_indent([dnlcollections.ship.basic.SupplierKeyat java.net.URLClassLoader$1.run(Unknown Source)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClassInternal(Unknown Source)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Unknown Source)at com.sleepycat.bind.serial.StoredClassCatalog.getClassInfo(StoredClassCatalog.java:211)...])])m4_nlist([dnlm4_bold([I'm upgrading my Java application to m4_db 4.3.  Can I use thecom.sleepycat.db.internal package rather than porting my code to the newAPI?])m4_p([dnlWhile it is possible to use the low-level API from applications, thereare some caveats that should be considered when upgrading.  The first isthat the internal API depends on some classes in the public API such asDatabaseEntry.])m4_p([dnlIn addition, the internal API is closer to the C API and doesn't havesome of the default settings that were part of the earlier Java API.For example, applications will need to set the DB_THREAD flag explicitlyif handles are to be used from multiple threads, or subtle errors mayoccur.])])m4_nlistendm4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -