You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Dmitri Farafonov <fa...@gmail.com> on 2006/05/26 21:08:00 UTC
Page management: PSML to Database
Hello,
This is page management related question...
I am trying to switch from file based config to DB based configuration in
Jetspeed2. I had edited spring config (page-manger.xml file) to use
DatabasePageManger instead of XML manager.
Like this:
<bean id="org.apache.jetspeed.page.PageManager"
name="pageManager"
class="org.apache.jetspeed.page.impl.DatabasePageManager">
<constructor-arg index="0"><value>JETSPEED-INF/ojb/page-
manager-repository.xml</value></constructor-arg>
<constructor-arg index="1"><value>128</value></constructor-arg>
<constructor-arg index="2"><value>150</value></constructor-arg>
<!-- permissions security enabled flag, default=false -->
<constructor-arg index="3"><value>false</value></constructor-arg>
<!-- constraints security enabled flag, default=true -->
<constructor-arg index="4"><value>true</value></constructor-arg>
</bean>
But since during installetion DB specific config was not populated to the
tables, I am getting root folder not found error.
Is there way to load all existing config and PSML files to the DB tables?
Any suggestions are appreciated.
Thanks in advace,
Dmitri.
Re: Page management: PSML to Database
Posted by Randy Watler <wa...@wispertel.net>.
Take a look at the 'import' goal in the M1 build, (top level maven.xml).
You can see that there is a utility that includes a file based and DB
based page manager in the same image and copies PSML entities between
them.
HTH,
Randy
On Fri, 2006-05-26 at 15:08 -0400, Dmitri Farafonov wrote:
> Hello,
> This is page management related question...
>
> I am trying to switch from file based config to DB based configuration in
> Jetspeed2. I had edited spring config (page-manger.xml file) to use
> DatabasePageManger instead of XML manager.
> Like this:
> <bean id="org.apache.jetspeed.page.PageManager"
> name="pageManager"
> class="org.apache.jetspeed.page.impl.DatabasePageManager">
> <constructor-arg index="0"><value>JETSPEED-INF/ojb/page-
> manager-repository.xml</value></constructor-arg>
> <constructor-arg index="1"><value>128</value></constructor-arg>
> <constructor-arg index="2"><value>150</value></constructor-arg>
> <!-- permissions security enabled flag, default=false -->
> <constructor-arg index="3"><value>false</value></constructor-arg>
> <!-- constraints security enabled flag, default=true -->
> <constructor-arg index="4"><value>true</value></constructor-arg>
> </bean>
>
> But since during installetion DB specific config was not populated to the
> tables, I am getting root folder not found error.
> Is there way to load all existing config and PSML files to the DB tables?
>
> Any suggestions are appreciated.
>
> Thanks in advace,
> Dmitri.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org