From owner-freebsd-java Sun Apr 9 14:29:34 2000 Delivered-To: freebsd-java@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 6F7F137B7F3 for ; Sun, 9 Apr 2000 14:29:32 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id OAA38750; Sun, 9 Apr 2000 14:28:58 -0700 (PDT) From: Archie Cobbs Message-Id: <200004092128.OAA38750@bubba.whistle.com> Subject: Re: Using Java to add records to a DB file In-Reply-To: <38ECF564.FF1CF779@partitur.se> from Palle Girgensohn at "Apr 6, 2000 10:36:52 pm" To: girgen@partitur.se (Palle Girgensohn) Date: Sun, 9 Apr 2000 14:28:58 -0700 (PDT) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Palle Girgensohn writes: > I need to add records to a Berkeley DB file (the FreeBSD built > in, version 1?) > > While I can find a java interface for the sleepycat.com versions > 2 & 3, the version 1.85 (which has a different API) is hardly > covered by that Java code. > > Has anyone seen or done anything like this? Really, all I need is > to insert a record, nothing more. I've thought about writing such a thing. The first problem is that the dbopen(3) routines call malloc(3) directly, which can confuse any Java runtime rather quickly. So the first step would be 'extracting' these calls in the dbopen(3) stuff to (optionally) go through a user-supplied function vector. Shouldn't be too hard. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message