You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erik Weber <er...@mindspring.com> on 2005/02/04 08:33:13 UTC
[OT] invoking another app w/o include or forward
I have a Struts Action that needs to invoke another Servlet application
running in the same container (but in a different Web app) to perform an
administrative task. The Action does not need to include the response
from this other Servlet in its response to the user. I just want to
invoke it and then proceed with returning an ActionForward as usual.
What would be the best way to accomplish this? Probably JMS would be a
better solution but right now I need something I can get working
quickly. I thought of exposing methods on the other Servlet but that
doesn't seem any better.
Thanks,
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] invoking another app w/o include or forward
Posted by Erik Weber <er...@mindspring.com>.
Hmm should I have the administrative Servlet set a "command" object in
the naming server and then let my Struts action look it up with JNDI?
Erik Weber wrote:
> I have a Struts Action that needs to invoke another Servlet
> application running in the same container (but in a different Web app)
> to perform an administrative task. The Action does not need to include
> the response from this other Servlet in its response to the user. I
> just want to invoke it and then proceed with returning an
> ActionForward as usual. What would be the best way to accomplish this?
> Probably JMS would be a better solution but right now I need something
> I can get working quickly. I thought of exposing methods on the other
> Servlet but that doesn't seem any better.
>
> Thanks,
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] invoking another app w/o include or forward
Posted by Leon Rosenberg <st...@anotheria.net>.
Why don't you make it via URLConnection to the another application?
URL myURL = new
URL("administrative_application_url);
URLConnection con = myURL.openConnection();
?
Regards
Leon
> -----Ursprüngliche Nachricht-----
> Von: Erik Weber [mailto:erikweber@mindspring.com]
> Gesendet: Freitag, 4. Februar 2005 08:33
> An: Struts Users Mailing List
> Betreff: [OT] invoking another app w/o include or forward
>
> I have a Struts Action that needs to invoke another Servlet
> application running in the same container (but in a different
> Web app) to perform an administrative task. The Action does
> not need to include the response from this other Servlet in
> its response to the user. I just want to invoke it and then
> proceed with returning an ActionForward as usual.
> What would be the best way to accomplish this? Probably JMS
> would be a better solution but right now I need something I
> can get working quickly. I thought of exposing methods on the
> other Servlet but that doesn't seem any better.
>
> Thanks,
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org