coldfusion.server.ServiceFactory in .NET

Posted on 2011-05-10
Last Modified: 2012-05-11
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.

Question by:hbash
    LVL 11

    Expert Comment

    by:Brijesh Chauhan
    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
    LVL 96

    Accepted Solution

    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...
    LVL 1

    Author Comment

    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

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
    CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now