No, the SwitchAction depends on having access to the same ApplicationContext
for the destination as that in which it executes.

For your purposes, two EARs deployed separately on the same server are no
"closer" to each other than if they were on different continents.

Joe


On 3/5/07, Edson Alves Pereira <[EMAIL PROTECTED]> wrote:

  Those server are real separate applications, they are two EAR deployed
in
the same J2EE server. Can i use SwitchAction to manage that?

On 3/5/07, Joe Germuska <[EMAIL PROTECTED]> wrote:
>
> If you actually ran these as two separate modules in a single Struts
app,
> then you could use the module switching facilities.  See
>
>
>
http://struts.apache.org/1.x/userGuide/configuration.html#module_config-switching
>
> If they are two separate web applications, then there is no built-in way
> to
> help one know about the other.  You pretty much have to forget that they
> are
> on the same machine.  You'd have to use redirects to send users over to
> the
> other app, and you'll have to go to some  lengths to share any kind of
> state
> between the two webapps.
>
> Joe
>
>
> On 3/5/07, Edson Alves Pereira <[EMAIL PROTECTED]> wrote:
> >
> >   Hello folks, i must use from my application an action from another
> > struts
> > application, both servers are in the same machine, for example:
> >
> >   /server1/initProccess.do send a forward to
/server2/fillStatements.do
> >
> >   Regards,
> >   Edson
> >
>
>
>
> --
> Joe Germuska
> [EMAIL PROTECTED] * http://blog.germuska.com
>
> "The truth is that we learned from João forever to be out of tune."
> -- Caetano Veloso
>




--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

"The truth is that we learned from João forever to be out of tune."
-- Caetano Veloso

Reply via email to