niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
Problem in setting metadata
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
George Feinberg
*nix forums beginner


Joined: 21 Nov 2005
Posts: 11

PostPosted: Mon Jun 05, 2006 6:53 pm    Post subject: Re: Problem in setting metadata Reply with quote

Wolfgang,

Inserting a document with metadata should work just fine. When you use
setGenerateName(true),
and use an XmlDocument object in the putDocument() call (as you need to
do
in order to set both content and metadata at once), the generated name
is
returned in the XmlDocument object, and can be obtained
via XmlDocument.getName() after the document has been "put."

That name needs to be used to get the document for future operations.

If you reply, please email me directly, as I do not generally monitor
this group.

Regards,

George Feinberg
gmf@sleepycat.com

wolfgang.schuller@googlemail.com wrote:
Quote:
Hi again,

It works now, because earlier i was using document configuration object
with setGeneratedName(true). As i removed it i.e. docConfig from
putdocument function, worked fine. I think this is little bug in bdxml
java api that one cannot insert document and metadat with container
generated name.

thanks
schuller
Back to top
wolfgang.schuller@googlem
*nix forums beginner


Joined: 04 Jun 2006
Posts: 3

PostPosted: Mon Jun 05, 2006 3:22 pm    Post subject: Re: Problem in setting metadata Reply with quote

Hi again,

It works now, because earlier i was using document configuration object
with setGeneratedName(true). As i removed it i.e. docConfig from
putdocument function, worked fine. I think this is little bug in bdxml
java api that one cannot insert document and metadat with container
generated name.

thanks
schuller

wolfgang.schuller@googlemail.com wrote:
Quote:
Hi,

I am a newbie to berkeley dbxml. As shwon from the subject i have
problem in setting meta data for every document. I have followed the
sample shown in userguide but it does not work so far. Most
ineterstingly it doesnot give any error while setting and retrieving
metadata.

I shall be grateful if anyone can send running example to me.

Thanks,
schuller
Back to top
wolfgang.schuller@googlem
*nix forums beginner


Joined: 04 Jun 2006
Posts: 3

PostPosted: Sun Jun 04, 2006 9:29 pm    Post subject: Problem in setting metadata Reply with quote

Hi,

I am a newbie to berkeley dbxml. As shwon from the subject i have
problem in setting meta data for every document. I have followed the
sample shown in userguide but it does not work so far. Most
ineterstingly it doesnot give any error while setting and retrieving
metadata.

I shall be grateful if anyone can send running example to me.

Thanks,
schuller
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 5:44 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Web Advertising | Loans | Promotional Web Design | AdSense Optimization Tutorials | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2759s ][ Queries: 20 (0.2015s) ][ GZIP on - Debug on ]