Scott Fraser wrote:
>
> Chirag Pandya, a coworker of mine, earlier posted this under the subject
> "Jetspeed":
>
> >>
> Hi all
>
> Does anyone know how to refer to local URL, when I try to refer to a
> local URL it tries to do a file open locally.
>
> If any one has an idea, I would greatly appreciate the help.
>
> thanks for the information in advance
>
> cp
> <<
>
> I work with Chirag and can clarify his question:
>
> * We are running Jetspeed-1.2b1 on Linux, under Tomcat, on a host
> named chumpydip.fmgtech.com
> * We are trying to have an instance of the RSSPortlet class fetch an
> RSS/XML file via HTTP from the same host that Jetspeed/Tomcat is running
> on
>
> We had an entry in portletregistry.psml that was trying to pull a file
> from the localhost via HTTP:
>
> <entry type="ref" parent="RSS" name="Test RSS Portlet">
> <url>http://chumpydip.fmgtech.com:8080/examples/test3.rdf</url>
> <metainfo>
> <title>Test RSS Portlet</title>
> </metainfo>
> </entry>
>
> The following was set in JetspeedResources.properties:
> cache.require.cached=false
>
I've already said this in another thread but the best way to do this is to create
a local OCS feed :
* Put a file like this at http://chumpydip.fmgtech.com:8080/myfeed.ocs
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ocs = "http://alchemy.openjava.org/ocs/ocs-syntax#"
xmlns:dc = "http://purl.org/dc/elements/1.0/">
<rdf:description about="http://chumpydip.fmgtech.com:8080/myfeed.ocs">
<dc:title>My very first feed</dc:title>
<dc:creator>Me</dc:creator>
<dc:description>Best content ever available</dc:description>
<rdf:description about="http://chumpydip.fmgtech.com:8080/examples/test3.rdf">
<dc:title>My RSS Channel</dc:title>
<dc:creator>Me again</dc:creator>
<!-- you may put additionnal dc information here -->
<!-- I assume the following is your correct format -->
<ocs:format>http://my.netscape.com/rdf/simple/0.9/</ocs:format>
</rdf:description>
<!-- you can add other channel descriptions here -->
</rdf:description>
</rdf:RDF>
* Add to your JetspeedResources, just before the XMLTree feed description
contentfeeds.feed.name=local
contentfeeds.feed.local.description=Local OCS Feed
contentfeeds.feed.local.url=http://chumpydip.fmgtech.com:8080/myfeed.ocs
* Make sure that the feed daemon and diskcache daemon are started at startup in
your Jetspeedresources.properties:
daemon.feeddaemon.classname=org.apache.jetspeed.daemon.impl.FeedDaemon
daemon.feeddaemon.interval=3600
daemon.feeddaemon.onstartup=true
daemon.diskcachedaemon.classname=org.apache.jetspeed.daemon.impl.DiskCacheDaemon
daemon.diskcachedaemon.interval=1800
daemon.diskcachedaemon.onstartup=true
* Restart jetspeed
You can now use
<entry type="ref" parent="http://chumpydip.fmgtech.com:8080/examples/test3.rdf"/>
in your PSML files without modifying the registry. Your files will be periodically
checked by the diskcache daemon and refreshed.
--
Rapha�l Luta - [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]