I trying to get two Sqlite databases and one RAILS database working together. Below is the code I have tried. This gets one sqlite database working and one RAiLS database working but not the second Sqlite database working.
When creating two AIRServiceProviders it uses the same id of 2 for both. Is this possible, if so what am I missing?
ApplicationController.initialize([AIRServiceProvider], XMLHTTPServiceProvider.ID, "actionplanr");
Rx.defaultServiceId = XMLHTTPServiceProvider.ID;
//Actonplanr Main Database (since with RAILS)
var actionplanrFile:File = File.userDirectory.resolvePath("actionplanr.db");
AIRactionplanrService = new AIRServiceProvider(actionplanrFile);
//Actonplanr System Database (templates and others, no sync)
var actionplanrSysFile:File = File.userDirectory.resolvePath("actionplanrsys.db");
AIRactionplanrSysService = new AIRServiceProvider(actionplanrSysFile);
Rx.services.addServiceProvider(AIRactionplanrService);
Rx.services.addServiceProvider(AIRactionplanrSysService);
trace("AIRactionplanrService.ID: " + AIRactionplanrService.id); //= 2
trace("AIRactionplanrSysService.ID: " + AIRactionplanrSysService.id); //= 2