Hi All. I am trying to implement a portlet
search service using the

org.apache.jetspeed.services.search

package.

THE PLAN:
To index certain
document types on a regular base triggered by
a daemon service.

MY PROBLEM:
I want to index a portlets content without having a
rundata object by this time. Having the
PORTLET in variable portlet I use this code:


JetspeedRunDataService rds = (JetspeedRunDataService) ((TurbineServices) TurbineServices.getInstance())


.getResources(RunDataService.SERVICE_NAME);
String content = portlet.getContent(rds.getCurrentRunData()).toString());

unfortunatelly rds.getCurrentRunData() returns null and all fails :-(


MY QUESTIONS:


1.) How can I access the content of a portlet from a deamon thread?

2.) How can I create a valid rundata object in a deamon thread?

I am aware of

RunData getRunData(String key, HttpServletRequest req, HttpServletResponse res, ServletConfig config)

in JetspeedRunDataService, but I am not sure about the parameter I
have to supply. (I am not a very experienced jetspeed/turbine developer!)


thanks in advance.



Joachim




____________________________________________

joachim m�ller
[EMAIL PROTECTED] . tel +49-69-759003-11

wemove digital solutions
[EMAIL PROTECTED]  . tel +49-69-759003-0 .  fax +49-69-759003-22
eschersheimer landstrasse 5
60322 frankfurt . germany
http://www.wemove.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to