Alan McAuley wrote:

> Hello listees,
>
> Is it possible toalter the Jetspeed configuration file "jetspeed-config.jcfg"
> from _within_  jetspeed?
>

I think it could be done.

>
> Would this cause serious problems? The idea being that I could write a control
> portlet that could be used for registering new portlets. This could possibly
> lead on to some form of remote administration etc...
>

The problem is that, to cope with a long set of problems with URL---file mapping
in the servlet API, and also to make remote/distributed setup easier, we are
switching from file based configuration to URL based configuration. There remains
a problem: how to make a URL that is writable.

I have made some experiments using jigsaw to serve jetspeed-content, and using
HTTP PUT to get a writer on the URL to update it. It works. The problem is that
there are plenty of security issues, ...

Also, some other people will prefer WebDAV, etc.

I think the solution is to have a pluggable URLWriter that knows how to write a
URL. One of the versions could use PUT, other WebDAV, other map it to (local or
network) files, ...

I'm trying to catch with a lot of things, one of these being the new
JetspeedDiskCache. Soon I will commit (in the pre-proposal-03 branch) this cache.
I will try to have the writable setup in it.

>
> This idea could be intrinsically flawed, but if it isnt, whats the best way to
> change the file?
>
> Get to grips with the castor marshalling?
>

Look at how it is done for JetspeedContent. If should be similar. Note, however,
that I am changing this mechanism so that it should be done through
DiskCacheEntry.getWriter() or some similar setup.

>
> TIA

Sorry for being so vague. Kevin is overwhelmed (I think). I am overwhelmed... We
should have something going very soon.

>
>
> Alan
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to