|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Reloading container
by Adam Rambousek
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi,
I have several processes that access single dbxml file, one of them can update the database, others just read the data. (User accounts are stored in the file and used by several applications.) Each application opens the dbxml file on start. But if I update the documents in dbxml, all the applications see just the old version of data (the one that was loaded on start). If I restart the application, it loads new data. But I want to update information without the need to restart the applications. Is it somehow possible to reload the data in container? Or even better, to make applications use actual data everytime? I'm using ruby interface, but if you point to a method in any interface, I can find the equivalent one. Thanks for any help. Kind regards, -- Adam Rambousek email: xrambous@... www: http://www.pohadkovychlum.cz *When we eliminate the impossible, whatever remains, however improbable, must be true. - Sherlock Holmes ------------------------------------------ To remove yourself from this list, send an email to xml-unsubscribe@... |
|
|
Re: Reloading container
by John Snelson-4
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi Adam,
I suspect that you are configuring your XmlManager object without a DbEnv object, or using one that doesn't support objects. You will need to create a transacted environment, the location of which is shared by all your processes in order for DB XML to work correctly with your configuration. Maybe this example Ruby program will help you: http://raa.ruby-lang.org/gonzui/markup/bdb/bdbxml2/examples/transaction.rb John Adam Rambousek wrote: > Hi, > I have several processes that access single dbxml file, one of them can > update the database, others just read the data. (User accounts are stored > in the file and used by several applications.) > Each application opens the dbxml file on start. But if I update the > documents in dbxml, all the applications see just the old version of data > (the one that was loaded on start). If I restart the application, it loads > new data. But I want to update information without the need to restart the > applications. > Is it somehow possible to reload the data in container? Or even better, to > make applications use actual data everytime? > I'm using ruby interface, but if you point to a method in any interface, I > can find the equivalent one. > > Thanks for any help. > > Kind regards, ------------------------------------------ To remove yourself from this list, send an email to xml-unsubscribe@... |
|
|
Re: Reloading container
by John Snelson-4
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message John Snelson wrote:
> I suspect that you are configuring your XmlManager object without a > DbEnv object, or using one that doesn't support objects. Whoops! I meant to say "using one that doesn't support transactions". John ------------------------------------------ To remove yourself from this list, send an email to xml-unsubscribe@... |
|
|
Re: Reloading container
by Adam Rambousek
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi John,
thank you very much for your help. This works perfectly. > I suspect that you are configuring your XmlManager object without a > DbEnv object, or using one that doesn't support objects. You will need > to create a transacted environment, the location of which is shared by > all your processes in order for DB XML to work correctly with your > configuration. Maybe this example Ruby program will help you: > > http://raa.ruby-lang.org/gonzui/markup/bdb/bdbxml2/examples/transaction.rb -- Adam Rambousek email: xrambous@... www: http://www.pohadkovychlum.cz ------------------------------------------ To remove yourself from this list, send an email to xml-unsubscribe@... |
| Free embeddable forum powered by Nabble | Forum Help |