1 Reply Latest reply on Nov 15, 2006 10:30 PM by cf_dev2

    Factory, Datasource, ServerName

    Hanno1962 Level 1
      I am using

      <CFOBJECT ACTION="CREATE" TYPE="JAVA" CLASS="coldfusion.server.ServiceFactory" NAME="factory">
      <!--- Get datasource service --->
      <CFSET dsService=factory.getDataSourceService()>
      <!--- Get datasources --->
      <CFSET dsFull=dsService.getDatasources()>
      <!--- Extract names into an array
      <CFSET dsNames=StructKeyArray(dsFull)>

      Many thanks

      <cfset dsNames = dsService.getNames()>