Integrated datacontext initialization with routing