One word of caution. Even though using the ColdFusion datasources in java is simple, I am fairly certain that the ColdFusion java libraries are undocumented (to the public at least). I don't know if Adobe plans to change this for upcoming releases (it would be great if they would), but I would definitely think twice before creating a large Java app that had dependencies on any part of the ColdFusion Java library.
I hope that someone can prove me wrong and provide a link to some kind of JavaDoc or something similar, but as far as I know, it doesn't exist. I know it took me a great deal of searching to learn about the QueryTable object that can be used to pass JDBC result sets back to ColdFusion as <cfquery> objects - Justin On 9/27/06, Leon Oosterwijk <[EMAIL PROTECTED]> wrote: > > I've done this. It is pretty easy. Here is the code: > > import coldfusion.server.*; > .... > coldfusion.server.ServiceFactory.getDataSourceService().getDatasource(da > tasourcename).getConnection(); > > > Just remember to close up the connection when you're done. :) > > Leon > > > -----Original Message----- > > From: Dan Parker [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 22, 2006 10:00 AM > > To: CF-Talk > > Subject: Can a Java program use a CF data source? > > > > We'd like for our Java developers to be able to use our > > ColdFusion data sources. This would eliminate the need for > > them to have separate config files for database connections. > > > > An alternate question would be "Can CF and Java developers > > use the same data sources?" I'd like to know our options. > > > > Many thanks! > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254575 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

