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:254375 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

