You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ve...@warpdriveonline.com on 2005/08/29 21:03:44 UTC

Integrating two applications

Hello:
  
I have two applications that have front-ends developed 
using the struts framework. They both run on weblogic 
application servers.

Each application has its own controller. They operate in 
two different physical environments. In the MVC paradigm, 
it's two independent MVCs.

I should be able to bring up pages that are controlled
by one Application from within the other.

They have to share sessions. This is because authenticated 
users on one system should be respected in the other. They 
share the same security infrastructure.

Any ideas are welcome.

Venki

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


re: Integrating two applications

Posted by Leon Rosenberg <st...@anotheria.net>.
 aehm...

1. the easy (or quick and very dirty) solution:
As soon as the user logins in app1, login him into app2 via iframe or hidden
javascript link and vice versa. 
Embed screens from the second application via iframe or similar into the
first application. Ensure you have reloads of dummy pages, so the session
doesn't time out. In one word: integrate on html level. It's a very quick
and pretty dirty solution. But it will work.

2. Write an access control layer, maybe with your own cookie, a crypted
string (blowfishJ) or a crypted cookie and use it from both applications to
identify the user. 
User logs in on app1, it sets the cookie with user permissions and a
timestamp, on each request to both apps the cookie is checked.

3. The "right" one. Merge both applications :-)

Hope that helps

Regards
Leon


> -----Ursprüngliche Nachricht-----
> Von: venkats@warpdriveonline.com [mailto:venkats@warpdriveonline.com] 
> Gesendet: Montag, 29. August 2005 21:04
> An: user@struts.apache.org
> Betreff: Integrating two applications
> 
> Hello:
>   
> I have two applications that have front-ends developed using 
> the struts framework. They both run on weblogic application servers.
> 
> Each application has its own controller. They operate in two 
> different physical environments. In the MVC paradigm, it's 
> two independent MVCs.
> 
> I should be able to bring up pages that are controlled by one 
> Application from within the other.
> 
> They have to share sessions. This is because authenticated 
> users on one system should be respected in the other. They 
> share the same security infrastructure.
> 
> Any ideas are welcome.
> 
> Venki
> 
> ---------------------------------------------------------------------
> 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