[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-1729) AjaxInterceptor with a different context root
Thomas Heute (JIRA)
jira-events at lists.jboss.org
Mon Oct 1 05:21:41 EDT 2007
[ http://jira.jboss.com/jira/browse/JBPORTAL-1729?page=all ]
Thomas Heute updated JBPORTAL-1729:
-----------------------------------
Fix Version/s: 2.6.3 Final
(was: 2.6.2 Final)
> AjaxInterceptor with a different context root
> ---------------------------------------------
>
> Key: JBPORTAL-1729
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-1729
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.6.1 Final
> Environment: fedora 7, eclipse europa, java 5 update 12
> Reporter: Luca Stancapiano
> Fix For: 2.6.3 Final
>
> Attachments: patch_AjaxInterceptor.zip
>
>
> about org.jboss.portal.core.controller.ajax.AjaxInterceptor class
> row 75:
> pageProps.put(DynaConstants.RESOURCE_BASE_URL, "/portal-ajax/dyna");
> It uses a static hard coded link to use portal-ajax application , but if we need to change context root, it points to the same link and so in some cases there can to be redirect problems.
> In my case, I have two portal instances on two different hosts and through mod_jk I redirect the first instance using /portal* path and the second with /two_portal* path.
> I cannot o use /portal-ajax path from the second host because mod_jk see that path and it redirects to the first portal instance, then I need to use a different path else I pay a unnecessary connection.
> To resolve this problem I added a property TargetContextPath (as for org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor class) into AjaxInterceptor and substituted it to /portal-ajax/ link.
> private String targetContextPath = "/portal-ajax";
> public String getTargetContextPath()
> {
> return targetContextPath;
> }
> public void setTargetContextPath(String context)
> {
> targetContextPath = context;
> }
> it can to be configured through AjaxInterceptor MBean into META-INF/jboss-service.xml. Here there is an example:
> <mbean
> code="org.jboss.portal.core.controller.ajax.AjaxInterceptor"
> name="portal:service=Interceptor,type=Command,name=Ajax"
> xmbean-dd=""
> xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
> <xmbean/>
> <attribute name="TargetContextPath">/portal-ajax</attribute>
> </mbean>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list