Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible that xhtml on one server can talk to managed-bean on other server(different machine)?  RSS feed

 
Akhil Pratap Singh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a web application using JSF-2.0 on weblogic 10.3.6. I am using Facelets as VDL. I have 5 different machine. They are different according to their OS and their geographical location. On my first xhtml page server(machine) is decided. Then on next page file upload and rest of processing takes place. My restriction is that SSO configuration can be done on only one machine. So I am restricted to using xhtml files from only my primary server where SSO configuration is done. But I have to connect to servlets or managed-bean of different machine as requests are machine specific and file needs to be uploaded to those machines for processing. So I cannot use redirectUrl as I need to be only on one machine. Is it possible that xhtml on one server can talk to managed-bean on other server(different machine)?. Or is there some other solution to this problem?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do realize, I hope, that "SSO on only one machine" is a contradiction in terms, I hope! SSO means Single signon. If you are using a true SSO provider, it should be able to serve for all 5 machines. Even if they are distributed across the planet. OpenID, for example, works that way.

No, you cannot share a View Template between multiple application instances. The View Template is compiled at the server by the FacesServlet so it must be available to the same FacesServlet that's keeping the beans in session. About as close as you can get is to use a shared session between machines and local copies of the View Templates, but your problem statement appears to indicate that the servers are not tightly coupled enough for that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!