You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rahul Patel <rc...@gmail.com> on 2006/12/02 22:04:56 UTC

Multiple struts apps

How can I access multiple struts applications (running on different servers)
from current struts application?

I have a situation where I need to provide HyperLinks to another struts
application from my current struts application. Now, both applications
require users to login.

Right now, I just created a simple URL e.g.
http://localhost:7001/LoadAnotherApplication.do?newAppParam=xyz

Now, I am running the first struts app in tomcat. And the second in weblogic
on my local machine. Now, when I click on the link from the first tomcat
struts app, it does take me to the new app's login page. But, then when I
click on anything else in my first app, it takes me to its login page as
well. In short, the session is destroyed in between.

Is there a way to resolve this?

Thanks,

Rahul

Re: Multiple struts apps

Posted by Rahul Patel <rc...@gmail.com>.
Thanks for the response Nitin.

I figured out the issue. It was happening because I was using localhost to
run both the applications (one on tomcat, and one on weblogic). This caused
the session in my first application to be overwritten).

It would be very good to have a link to article(s) that allow(s) me to
understand the relation between session/sessionId and the host IP, port etc.

-Rahul

On 12/4/06, Nitin M. Mandolkar <ni...@gmail.com> wrote:
>
> Hi Rahul what don't you use single sign on. I do;t know very much
> about single sign on but it will reslove your problem.
>
> nitin
>
> On 12/2/06, Rahul Patel <rc...@gmail.com> wrote:
> > How can I access multiple struts applications (running on different
> servers)
> > from current struts application?
> >
> > I have a situation where I need to provide HyperLinks to another struts
> > application from my current struts application. Now, both applications
> > require users to login.
> >
> > Right now, I just created a simple URL e.g.
> > http://localhost:7001/LoadAnotherApplication.do?newAppParam=xyz
> >
> > Now, I am running the first struts app in tomcat. And the second in
> weblogic
> > on my local machine. Now, when I click on the link from the first tomcat
> > struts app, it does take me to the new app's login page. But, then when
> I
> > click on anything else in my first app, it takes me to its login page as
> > well. In short, the session is destroyed in between.
> >
> > Is there a way to resolve this?
> >
> > Thanks,
> >
> > Rahul
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Multiple struts apps

Posted by "Nitin M. Mandolkar" <ni...@gmail.com>.
Hi Rahul what don't you use single sign on. I do;t know very much
about single sign on but it will reslove your problem.

nitin

On 12/2/06, Rahul Patel <rc...@gmail.com> wrote:
> How can I access multiple struts applications (running on different servers)
> from current struts application?
>
> I have a situation where I need to provide HyperLinks to another struts
> application from my current struts application. Now, both applications
> require users to login.
>
> Right now, I just created a simple URL e.g.
> http://localhost:7001/LoadAnotherApplication.do?newAppParam=xyz
>
> Now, I am running the first struts app in tomcat. And the second in weblogic
> on my local machine. Now, when I click on the link from the first tomcat
> struts app, it does take me to the new app's login page. But, then when I
> click on anything else in my first app, it takes me to its login page as
> well. In short, the session is destroyed in between.
>
> Is there a way to resolve this?
>
> Thanks,
>
> Rahul
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org