portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Louzán <dlou...@apache.org>
Subject Re: how to configure wsrp4j persistence to a directory outside WAR
Date Thu, 09 Jun 2005 10:34:56 GMT
Hash: SHA1

We are looking forward at redesigning the persistence code for allowing
pluggable persistence methods. I personally haven't studied the Castor
persistence provided by WSRP4J, maybe one of the original contributors can
solve your doubts. If I have some spare time these days I'll take a look, but I
can't promise anything.


Pete wrote:
> I'd like to configure WSRP4J (and Pluto) to use their
> persistence directories outside of the WAR/EAR -
> specifically a directory relative the working
> directory of the appserver (Websphere).
> For Pluto I have made these configuration changes:
> wsrp/WEB-INF/config/services.properties
> Add these lines:
> aggregation.base.dir = aggregation/
> mapping.portletxml.configfile =
> data/xml/portletdefinitionmapping.xml
> mapping.webxml.configfile =
> data/xml/servletdefinitionmapping.xml
> For WSRP specifically there did not appear to be
> support for changing the location of the persistence
> directory out of the WAR so I tried to change the code
> as follows:
> ServerPersistentFactory interface should have a
> "setProperties" method.
> Then PersistentAccess.getServerPersistentFactory()
> should pass WSRPServices.properties (pFactories) on to
> the instantiated ServerPersistentFactory.
> Then ServerPersistentFactoryImpl.setProperties() can
> setPath() on the ServerPersistentFactoryImpl as
> specified in the WSRPServices.properties file (for
> example wsrp.persistence.path = file:/c:/wsrp)
> I really don't know if I'm doing the right thing.  Can
> anyone help?  Do I even need to change the code for
> WSRP4J to do this?  My attempt at a code change
> appears to have failed, and I'm trying to debug, but
> not getting very far.
> Pete
> __________________________________ 
> Discover Yahoo! 
> Have fun online with music videos, cool games, IM and more. Check it out! 
> http://discover.yahoo.com/online.html
Version: GnuPG v1.2.6 (GNU/Linux)


View raw message