Tuesday, June 17, 2014

EnablingSSO for WSO2 Servers : Overcome session time out issue running on same machine

EnablingSSO for WSO2 Servers is one nice thing you can do with WSO2 Identity Server. If you do it on a single server and try to access multiple server instances on same browser you may come across session time outs.
What happens here is when user access one server and switch to access other server in the same browser, JSESSION cookie is replaced by other server. To overcome that we have to do the following steps.
  1. Go to <ESB_HOME>/repository/conf/carbon.xml. 
    • Find config under name of HostName. 
    • Uncomment it. 
    • Change it to some meaningful hostname 
<HostName>esb.wso2.com</HostName>
    • change config MgtHostName as well
<MgtHostName>esb.wso2.com</MgtHostName>
  1. Do the step 1 to GREG as well.
  2. Go to hosts file in your server. 
    • sudo gedit /etc/hosts
    • add following entries 
127.0.0.1 esb.wso2.com
127.0.0.1 greg.wso2.com

  1. Restart the servers

No comments:

Post a Comment