Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS2-38

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS2-38
    Summary: Allow PBStore PersistenceStore implementation to grab user defined 
repository from META-INF
       Type: New Feature

     Status: Unassigned
   Priority: Major

    Project: Jetspeed 2
 Components: 
             Other
   Versions:
             2.0-a1

   Assignee: 
   Reporter: Scott T Weaver

    Created: Thu, 20 May 2004 12:20 PM
    Updated: Thu, 20 May 2004 12:20 PM

Description:
This feature will allow us to place our user-defined repositrory xml files into a 
components META-INF/ directory instead of having to add an ENTITY definition to the 
root repository.xml.  The PBStore impl will just enumerate all 
META-INF/ojb_repository.xml files from the class and add them directly to OJB's meta 
data repository on the fly.

This is all I will need to add to the PBStore constructor:

MetadataManager metaManager = MetadataManager.getInstance();
            RepositoryPersistor persistor = new RepositoryPersistor();
            Enumeration descriptors = 
getClass().getClassLoader().getResources("META-INF/ojb_repository.xml");
            while(descriptors.hasMoreElements())
            {
                URL descriptorUrl = (URL) descriptors.nextElement();
                log.info("Merging OJB respository: "+descriptorUrl);
                DescriptorRepository repo = 
persistor.readDescriptorRepository(descriptorUrl.openStream());
                metaManager.mergeDescriptorRepository(repo);                
            }


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to