Currently some of the database configuration is hardcoded in mapconfig.xml file.The dataSource part needs to be configurable.