Thanks anyway, Calvin, Jochem tried to help.

Don

> Without reading all of this, would this help?
>
> http://www1.oli.tudelft.nl/jochemd/index.cfm?PageID=12
>
> <cflock name="serviceFactory" type="exclusive" timeout="10">
  
> <cfscript>
   
> factory = CreateObject("java", "coldfusion.server.ServiceFactory");
   
> ds_service = factory.datasourceservice;
   
> dsources = ds_service.datasources;
  
> </cfscript>
  
> <!--- dump existing datasources for visual verification--->
  
> <cfdump var="#dsources#">
  
> <!--- Get one datasource --->
  
> <cfset datasourcecopy = Duplicate(dsources['defaultdb'])>
  
> <!--- Add it as a new datsource  --->
  
> <cfset datasourcecopy.name = "newdb">
  
> <cfset dsources["newdb"] = Duplicate(datasourcecopy)>
  
> <!--- dump existing datasources for visual verification--->
  
> <cfdump var="#dsources#">
> </cflock>
>
> - Calvin
  
> ----- Original Message -----
  
> From: Chunshen (Don) Li
  
> To: CF-Community
  
> Sent: Monday, December 29, 2003 2:13 PM
  
> Subject: Is it too much to ask of MM for the following little
> problem?
>
>
  
> Hi all,
>
  
> Like quite a number of you, I'm a hard-core, long long time CFer.  I
> need an ability to add a datasource dynamically (not dynamic data
> source connection) for CFMX 6.0/6.1 on Window's platform.  I asked
> this question, per thread,  http://www.houseoffusion.
> com/cf_lists/index.cfm/method=messages&threadid=29263&forumid=4 quite
> a few weeks ago.  Some fellow CFers were nice to chip in, however, the
> problem was not resolved.  I asked one MM person for help, but never
> got any response (pretty rude really).  I'm just wondering if it is
> really too much to ask MM of such a question.  Please refrain from the
> argument that they've so many customers, da da da stuff.  One
> Australian guy said well over a week ago that he would get back to me
> in a week or so, and no nothing yet.  I'm hitt! ing the "dead/steel
> wall" now.
>
  
> Any useful thought would be appreciated.
>
  
> Don Li
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to