By Yogananda

“Remain calm, serene, always in command of yourself. You will then find out how easy it is to get along.”
-By Yogananda

Saturday, September 8, 2012

Context Mapping for Applications and Services in WSO2 AS





If you would like to have your own name for a app that you are developing and hosting it with us in Apps server, then here is the way to go. The custom URL will be mapped to the long URL.

You can own a unique domain to your deployed web application in our Apps server. Basically your app can be accessible like http://example.wso2.com rather confusing with a long URL http://appserver.stratoslive.com/t/tenant.com/webapps/example. Here you can configure the suffix ".wso2.com" through a CARBON_HOME/reposiory/etc/conf/url-mappings.xml file. 

The services which hosts in apps server can also be accessible via http://serviceid.wso2.com?wsdl. Also, tryit and rest call could use the same URL.

The short URL is tenant isolated even though it is not having tenant URL pattern. Also, the webapps which could be accessible through short URL will work with:

1.Tenant Lazy loading
2.Ghost Deployment of artifacts
3.Billing and Metering in Stratos
4.Cloud Deployment of AS nodes

The configuration of URL mappings will be slight different in case of stand alone products and in stratos. I'll explain the configuration details in my next post.