> However, when I look at the repository_jetspeed.xml it looks like I need > to add all the classes referenced in there to my project as well. Is this > correct?
Not necessarily, you can create another repository file, say myapp_respository.xml, and link it like jetspeed_repository.xml is within the base respository.xml. However, the jetspeed_respository.xml IS NOT jetspeed 1 compatible it is meant for the JSR-168/J2 implementation. So, you will probably need to write the repository for J1 yourself, which should not be that big of a deal as you have some good examples already and the OJB site, http://db.apache.org/ojb, has great documentation. I already started this by using OJB to manage all the security persistence operations as opposed to using Torque. However, I just used straight OJB to do it instead of the plugin (don't ask me why, I just did ;). The change became bigger than expected, as I have totally re-implemented security using an event model where multiple events can contribute to login, logout, role check, get users. Etc. Allowing me to have security checks originating from multiple sources and systems. > Also, I think I'm missing the place where I actually tell Jetspeed to use > the > database as the persistence mechanism rather than the file system. > Or, is it an automatic switch when it doesn't find the files? The persistence plugin does not do this automatically, you would need to implement a db psml service that uses the plugin architecture. Regards, *===================================* * Scott T Weaver������������������� * * Jakarta Jetspeed Portal Project�� * * [EMAIL PROTECTED] * *===================================* � -----Original Message----- From: Trinka, Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:45 AM To: '[EMAIL PROTECTED]' Subject: RE: Persistence plugin Hi Scott, thanks for the point in this direction.� I took this offline because I don't know how much of this you want in the user list before your how-to is finished...feel free to move this back to the list, I just didn't want to generate unnecessary questions for you.� I feel like I may be close to getting this to work.� I had already downloaded the source when I got your message, and here's the stuff I have done so far: � Source changes -------------- added /org/apache/jetspeed/commons/service/ServiceFactory.java added /org/apache/jetspeed/commons/service/ServiceInitializationException.java added /org/apache/jetspeed/persistence/JetspeedPersistenceService.java added /org/apache/jetspeed/persistence/LookupCriteria.java added /org/apache/jetspeed/persistence/NullTransaction.java added /org/apache/jetspeed/persistence/ObjectAlreadyPersistentException.java added /org/apache/jetspeed/persistence/ODMGPersistencePlugin.java added /org/apache/jetspeed/persistence/PersistencePlugin.java added /org/apache/jetspeed/persistence/PersistencePluginFactory.java added /org/apache/jetspeed/persistence/PersistenceService.java added /org/apache/jetspeed/persistence/impl/AbstractOJBPersistencePlugin.java added /org/apache/jetspeed/persistence/impl/JetspeedOJBRuntimeException.java added /org/apache/jetspeed/persistence/impl/OjbLookupCriteria.java added /org/apache/jetspeed/persistence/impl/OJBODMGPersistencePlugin.java added /org/apache/jetspeed/persistence/impl/OJBPBPersistencePlugin.java added /org/apache/jetspeed/persistence/ojb/conversion/Long2LongFieldConversion.java added /org/apache/jetspeed/persistence/tests/om/Application.java added /org/apache/jetspeed/services/plugin/AbstractPluginFactory.java added /org/apache/jetspeed/services/plugin/BasicPluginConfigurationImpl.java added /org/apache/jetspeed/services/plugin/ConfigurationReader.java added /org/apache/jetspeed/services/plugin/FulcrumServicePathResloverImpl.java added /org/apache/jetspeed/services/plugin/JDOMConfigurationReaderImpl.java added /org/apache/jetspeed/services/plugin/PathResolver.java added /org/apache/jetspeed/services/plugin/Plugin.java added /org/apache/jetspeed/services/plugin/PluginConfiguration.java added /org/apache/jetspeed/services/plugin/PluginConfigurationException.java added /org/apache/jetspeed/services/plugin/PluginInitializationException.java added /org/apache/jetspeed/services/plugin/UnsupportedPluginException.java added /org/apache/jetspeed/cps/CommonService.java � Web Content changes ------------------- added Web Content/WEB-INF/conf/ojb/OJB.properties added Web Content/WEB-INF/conf/ojb/repository.dtd added Web Content/WEB-INF/conf/ojb/repository.xml added Web Content/WEB-INF/conf/ojb/repository_database.xml added Web Content/WEB-INF/conf/ojb/repository_internal.xml added Web Content/WEB-INF/conf/ojb/repository_jetspeed.xml added Web Content/WEB-INF/conf/persistence-plugins.xml added Web Content/WEB-INF/conf/plugins.dtd � Jar files --------- added db-ojb-1.0.rc4.jar Configuration changes --------------------- modified JetspeedResources.properties to configure persistence service modified persistence-plugins.xml to use persistence-plugins.dtd modified persistence-plugins.dtd to reflect structure of persistence-plugins.xml modified /ojb/repository_database.xml to use Oracle � Now I think I am stuck again.� :)� I have looked at the WEB-INF/db/hsql/Registry.script file and I am confident that I can get the right tables, etc. in my oracle database.� However, when I look at the repository_jetspeed.xml it looks like I need to add all the classes referenced in there to my project as well.� Is this correct?� Also, I think I'm missing the place where I actually tell Jetspeed to use the database as the persistence mechanism rather than the file system.� Or, is it an automatic switch when it doesn't find the files? � If there is any way I can help in putting this how-to together, please let me know.� Thanks again for your time. � -Mike � -----Original Message----- From: Weaver, Scott [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 12:15 PM To: 'Jetspeed Users List' Subject: RE: Persistence plugin Hi Mike, I don't currently have any documentation put together on using the persistence plug in standalone.� I should have some time this weekend to put together a how-to on using the persistence plug in a standalone application. I the mean time, you can checkout J2 from the CVS, you can start looking at the code under plugin/src.� You can also look in portal/src/webapp/WEB-INF/conf/jetspeed.properties to see how the service is configured.� Look at portal/src/webapp/WEB-INF/conf/persistence-plugins.xml on how to define a plugin instance(s). portal/src/webapp/WEB-INF/conf/ojb contains all the standard OJB information for the OJB-based plguins. hth, *===================================* * Scott T Weaver������������������� * * Jakarta Jetspeed Portal Project�� * * [EMAIL PROTECTED] * *===================================* � > -----Original Message----- > From: Trinka, Mike R [mailto:[EMAIL PROTECTED] > Sent: Friday, September 19, 2003 11:34 AM > To: 'Jetspeed Users List' > Subject: Persistence plugin > > Hi all, I have been extremely impressed with Jetspeed's malleability so > far. > It seems that every modification is very easy to implement, but now I am > stumped, so here goes: > > I have set up Jetspeed to use an Oracle database, and everything seems to > be > working.� However, I would like to get away from using a blob to store the > psml.� I know that Jetspeed 2 will use a persistence plugin to allow this, > but I also read on the dev list that the persistence plugin can be used in > a > Jetspeed 1 project, because it can be a standalone thing.� Is there a list > of things that need to be changed to implement this?� If so, where? > > I originally thought that a re-write of DatabasePsmlManagerService would > be > necessary, but this has me hoping otherwise.� I have a need to implement > this before the end of the year, and I will want to migrate to Jetspeed 2 > when it is ready, so I would like to make the transition as painless as > possible.� I figured this would accomplish both goals, if it is possible. > > Any hints or guidance or points in the right direction would be helpful. > Thanks. > > -Mike Trinka > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
