You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-user@portals.apache.org by "DeHamer, Brian" <br...@hp.com> on 2006/03/02 02:38:59 UTC

Question about wsrp4j-producer.xml

When I execute the maven deploy-producer goal, I notice that the
wsrp4j-producer.xml file copied to the
$CATALINA_HOME\conf\Catalina\localhost directory contains the following:

<Context path="/WSRP4JProducer" docBase="wsrp4j-producer" 
         crossContext="true">
</Context>

The value of the path attribute doesn't seem to match the context path
that is configured for the SwingConsumer.  It seems that the path should
actually be "/wsrp4j-producer".

I found that this doesn't actually cause any problems on Tomcat 5.5.x
(it appears to ignore the path attribute and instead simply rely on the
name of the directory deployed underneath $CATALINA_HOME\webapps) --
however, with Tomcat 5.0.x I get some errors related to not being able
to retrieve the request dispatcher.

Is this a mistake, or am I missing something?

Brian DeHamer
 

adding an extension to WSRP

Posted by Pete <pd...@yahoo.com>.
I have added an extension to the
initCookie/registrationContext/extensions coming from
an IBM Websphere Portal WSRP Consumer.
I am passing a common session token to all the WSRP
providers consumed by the portal.

My first entry point into WSRP4J was here
org.apache.wsrp4j.producer.driver.WSRPEngine.initCookie
from request.getRegistrationContext() i get the
extensions
in createSession (method which I now pass a custom
value) I store a session attribute

But in the end, the session attribute did not make it
to the PortletSession in the actual portlet class.  I
found I had to change these classes in Pluto (I am
working with an older version of pluto and wsrp4j,
possibly RC1 or 2 of Pluto) to "getSession" at
multiple points.  Once that is done, the session
attribute I added was passed along as desired.
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke
portletRequest.getPortletSession();
((javax.servlet.http.HttpServletRequestWrapper)internalPortletRequest).getSession();
org.apache.pluto.core.PortletServlet.dispatch
request.getSession();

Any idea why I had to do this?  Am I just using an old
version of Pluto?  Something really strange is
happening in Pluto.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com