That's different, actually. What I described lets you put different Stores at 
different paths, so based on the path to the file it would be in a different Store.

Take a look at the default Domain.xml that comes with the Tomcat bundle, and you'll 
see that the "tx" Store is actually configured to do what you want. It uses a 
TxXMLFileDescriptorsStore for metadata and a TxFileContentStore to store content. You 
can try replacing the TxXMLFileDescriptorsStore with a RDBM Store. I don't know if 
that will work, but it's your best bet. The TxFile Stores were designed to work 
together this way, so you may have problems trying to use DB Store instead. You'll 
never know unless you try, though ;).

-James

>>> [EMAIL PROTECTED] 7/1/2004 7:54:22 AM >>>
Thanks a lot.  Three is enough for me. How could I use these stores in my 
program? I mean how could I choose the store to save files or data in 
runtime? I want to save files to file system , and put metadata into 
database.
Thank you very much.
Haipeng


>From: "James Mason" <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: Multiple stores
>Date: Wed, 30 Jun 2004 16:56:10 -0700
>
>I don't know what the practical limit for the number of stores is, but I'm 
>using three at the moment and I don't see any reason you couldn't do more 
>than that.
>
>In the Domain.xml file you need to configure each Store and give it a 
>unique name, then you need to put each Store at a unique path using the 
>scope elements. Here's an example:
>
>       <scope match="/" store="main"/>
>       <scope match="/users" store="users"/>
>       <scope match="/roles" store="roles"/>
>
>If you put the stores at non-standard locations you'll need to <objectnode> 
>elements to the <data> section in order to get things initialized properly.
>
>-James
>
> >>> [EMAIL PROTECTED] 6/30/2004 3:26:26 PM >>>
>Is that possible use multiple stores at the same time? If so, how could I 
>do
>that?
>thanks a lot.
>haipeng
>
>_________________________________________________________________
>MSN 9 Dial-up Internet Access fights spam and pop-ups � now 3 months FREE!
>http://join.msn.click-url.com/go/onm00200361ave/direct/01/ 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
>

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page � FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/ 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to