On Wednesday 27 October 2004 23:18, S V Subramonian wrote: > All, > > Right now Merlin Metadata are in xml format (.xinfo, > block.xml etc). Is it possible for me to store the > same Metadata in Database. If so please let me know > how I can achieve this. > > If not,is it possible for me to make an adapter/plugin > to read Metadata from database and that can be > consumed by Merlin.
First I would really be interested to know why you want to do this (except making me confused). I can't for any reason understand that the .xinfo files should be anywhere else than together with the class file. So if you load your classes from a DB, then go ahead and load the .xinfo as well, since it is just a resource like the class. For assembly/block and configuration files, it makes a lot more sense. You have two obvious choices of achieving this; 1. Create a servlet and have the blocks/configs served over http. 2. Create a new protocol handler for the JVM, from which the URL can describe the resource and the protocol handler retrieve it from the database. (See the javadoc of one of the constructors of java.net.URL for details.) Cheers Niclas -- +------//-------------------+ / http://www.bali.ac / / http://niclas.hedhman.org / +------//-------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]