Discussion:
coldfusion datasource
(too old to reply)
ismaguen
2005-08-03 09:00:51 UTC
Permalink
Hello !
I am developing a (JAVA-ColdFusion) hybrid application using ColdFusion MX 7
Enterprise edition that includes a Jrun server. I would like to know if I can
use ColdFusion DataSource configured on the ColdFusion administrator as a JAVA
DataSource and if it is possible, how can I do it?
I am now using a Java Datasource for my database connection by editing the
?jrun-resources.xml? file and it is working for Java and ColdFusion. I have
also tried to connect from the JAVA side to a ColdFusion Datasource but it
doesn?t work (I have an error ?java.lang.Exception: unknown association: "data
source name").
Thanks a lot for your answers.
Ismaguen.
AWhitford
2005-08-03 18:18:32 UTC
Permalink
:confused; I don't think so. Why would you want to?

The JRun setup allows you to specify a JNDI location which is necessary for
your Java code to reference it.
In CF, you can define your datasource to leverage the JRun datasource, so your
data source definitions may be centralized in JRun/J2EE.

(With CFMX 6.x, it would automatically inherit the JRun/J2EE data sources, so
you didn't need to redefine the data source in Cold Fusion. But I digress...)
Loading...