This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Integrating JSP and PHP based web apps  RSS feed

 
Ranch Hand
Posts: 2373
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the responsibility to find out and analyze the alternative solutions for integrating a JSP+Servlets+XML based web application and a PHP+MySQL based project management web application both developed in-house. One of the key requirements are to be able to use a single sign-in to use the both web application or in other words when we provide the same look and feel to both the web apps, the visitor should find it a single web site.
I think XML is a good candidate for sharing data and session state between thew two apps. Your additional comments as well as other alternatives will open up my eyes.
So I am :roll:
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Single Signon for this case can be very simpe. Both Technologies support reading and setting Cookies, Quick easy decision making and forwarding the request to a different URL. Knowing this, you can develop a Single signon server which sets a Stateless Cookie which is timed for say an hour. Both apps, check the Cookie with each request made and renews the Time for another hour if present. If ever a request is made to either without the Cookie, forward the request to the Single Signon server for login.
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Carl. This solves the problem within a minute. However, I was planning to exhange some java vectors or PHP arrays between these two apps. In that case, data serialization/desirialization to flat file or XML may be the way to transfer data. Anyhting else?
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!