Specifically for datasources, the simplest method is probably to use cfhttp to post to the relevant page in the ColdFusion Administrator. That assumes that you know the ColdFusion Administrator password.
great suggestion, Spike.
 
thankfully an intranet, so good news.
 
Here I was thinking I'd have to do this at a low level using CFFACTORY ...
 
... but posting the database config data to the administrator dsn form seems interesting.
 
that should be fine for single dsn's but how would that go on creating dozens at a time?
-----Original Message-----
From: Spike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 3:47 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: cf.Factory (coldfusion.server.ServiceFactory)

Specifically for datasources, the simplest method is probably to use cfhttp to post to the relevant page in the ColdFusion Administrator. That assumes that you know the ColdFusion Administrator password.

If you don't know the CF Admin password, you can still use cfinclude to include the relevant page from the ColdFusion Administrator and make sure that the form scope has the required variables. That assumes that you know the physical locaiton of the CFIDE directory on your servar, and your CF Administrator isn't in a sandbox.

If you're sandboxed out of the Administrator you're going to have lots of fun.

Spike

Beattie, Barry wrote:
thanx Spike.

I'm looking at it now, thanx. it's a start...

I'm trying to script creating and managing lots of DSN's (really a batch
job) and this looks like the only way to do it. 

any ideas? pointers?

thanx
barry.b


-----Original Message-----
From: Spike [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 June 2003 3:10 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: cf.Factory (coldfusion.server.ServiceFactory)


What sort of stuff do you want to know?

It's relatively easy to use Java to figure out the details of what you 
can do with the various factory services.

e.g.

<cfscript>
  factory = createObject('java','coldfusion.server.ServiceFactory');
</cfscript>
<cfoutput>
<cfloop list="#structKeyList(factory)#" index="i">
#factory[i].getClass().getname()#<br>
</cfloop>
</cfoutput>

That will give you a list of the Java classes for each of the factory 
services. You can then use Java reflection to find out more about the class.

I wrote a Java class dumping utilitly for CFMX which is available here:

http://www.spike.org.uk/index.cfm?objectid=58DC386D-22AB-07A9-6B43A9E80357D6
C7&startDate=06_2003

Spike

Beattie, Barry wrote:

  
Hi all

anyone know of more documentation (and examples?) for cf.Factory other than
    

  
http://www1.oli.tudelft.nl/jochemd/index.cfm?PageID=10

??? It's the only link I can find on it

thanx
barry.b

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
    
[EMAIL PROTECTED]
  
MX Downunder AsiaPac DevCon - http://mxdu.com/


 

    

  

-- 
Stephen Milligan
Consultant for hire
http://www.spike.org.uk
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to