• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

coldfusion.server.ServiceFactory in .NET

Is there a library/component that I can use to get at the cold fusion DSNs in a similar fashion to what apparently can be done natively as well is in Java?

I think,  if I can get the appropriate reference(s), I can create a coldfusion.server.ServiceFactory object and do so.

Please advise.

Howard Bash
Howard Bash
1 Solution
Brijesh ChauhanStaff IT EngineerCommented:
You want to get all the datasources in CF ?

The below script gives you the datasources

factory = createObject("java", "coldfusion.server.ServiceFactory").DataSourceService;

sources = {};
sources = factory.getDatasources();

<cfdump var="#sources #" />

Open in new window

More articles that you can read on how to use the dataSourceService

Bob LearnedCommented:
I believe that this is a .NET question about how to interact with ColdFusion...I haven't seen any library, but that doesn't mean that one doesn't exist...
Howard BashSenior Software EngineerAuthor Commented:
Indeed, LearnedOne.  I am trying to find a .NET library that will allow something like this in a class library I want to use with a CF Web site.

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now