You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by ri...@peoplesoft.com on 2004/08/26 17:03:27 UTC

Q about o.a.wsrp4j.consumer.URLGenerator and it's usage in proxyportlet




I've been looking into the way the URLGenerator interface is implemented in
o.a.wsrp4j.consumer.portlet.impl.URLGeneratorImpl. Specifically, the way
instances of RenderResponse get associated with it. It seems the generator
is a singleton but allows each caller to associate their own RenderResponse
at the time getInstance is called. Since getInstance is called from
ProxyPortlet.render it would seem like there is a good opportunity for
inter-thread collisions. The result would be that one ProxyPortlet thread
would cause the generation of url's based on the RenderResponse in another
thread (the last one to call generator getInstance).

Is my analysis correct? If yes, then is a simple solution to make the
RenderResponse in URLGeneratorImpl ThreadLocal?