If you happen to be using Tomcat you could share data objects or database
Pools between applications.  It has a little known context setting known as
"crossContext" that could allow two different webapps to share objects as
well as perform request dispatches between them.

See:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Or this mini-tutorial:
http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=ApacheTomcat

Just keep in mind a lot of the notes are that they must all be on the same
virtual host configuration of Tomcat.

Regards,
David

-----Original Message-----
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 05, 2006 10:11 AM
To: MyFaces Discussion
Subject: Re: Using JSF to include jsp, JSF page from another WAR?


2 different WAR = 2 differents application context that share nothing
except, perhaps, a common database. If you want to share more between 2
WAR, then you must do it with a common infrastructure that transfert
informations between the WARs. The most obvious way i see for this is
EJBs, in which case you encapsulate your 2 WARs inside a EAR. But even
in this case, the 2 JSF contexts will probably not be aware of each
other, and as such can not include or forward to each other.

So, it's simply not possible.

[EMAIL PROTECTED] a écrit :
> Hi,
>
> I just encountered a problem which I wonder if JSF or tomahawk can
> solve for me.
> Is it possible to, by using JSF+tomahawk component(s) ,  to
> runtime-include a jsp, JSF page from another WAR?
>
> Ive tried
> <jsp:include flush="false"      page="#{projectManager..overviewJSF}">
>      <jsp:param name="workItemID" value="#{projectManager.id}"/>
>  </jsp:include>
>
> but Jetty doesn not allow me to reference a JSP in another WAR.
>
> thanks
> /anders

Reply via email to