I\'m trying to get a list of datasources off my server (Yes I am the server owner...this is not a hack).
I think I confused the issue by giving two examples - so I\'m e
dbserv = createobject("java","coldfusion.server.ServiceFactory").getDatasourceService();
dblist = dbserv.getDatasources();
writedump(dblist);
This works in ColdFusion. If you are getting securitycredential exception then you need to login as admin like
admin = new cfide.adminapi.Administrator();
admin.login("password","admin");
The following code will not work
dbserv2 = createobject("java","coldfusion.server.DataSourceService");
dblist2 = dbserv2.getDatasources();
And it is rightfully throwing method not found. Mainly because DataSourceService is a java Interface and doesn't have this method implemented. It is implemented by Executive class.