
ColdFusion MX on Mac OS X, Part 4
Pages: 1, 2, 3
17. The Select schema window shows two items: PBPUBLIC and POINTBASE. The PointBase item will display system components available in the entire PointBase system. The PBPUBLIC item will display everything that is available to the PBPUBLIC user for this database. (Many database systems allow different users to have different access privileges to the same database.) Select the PBPUBLIC item to display the components defined to the creator of the currently-connected (CFSnippets) database. Click OK. The Schema PBPUBLIC window pops up.

18. In the Schema PBPUBLIC window, click the Employees Table in the left pane; the right pane changes to display the definitions for the Employees Table.

19. Move the Schema PBPUBLIC window to the side so we can view both it and the Main ViennaSQL window.

20. In the main ViennaSQL window, enter the following SQL Query into the bottom pane. Then click the Execute (right arrow) icon (top, fifth from the left).
SELECT LastName, FirstName, Phone
FROM Employees
WHERE Department='Sales'
ORDER BY LastName, FirstName

21. The query results are shown in the upper pane.

We have only scratched the surface of the powerful, general-purpose ViennaSQL GUI SQL client. We can develop and test our SQL queries, interactively, against test or live data. Once the queries are validated, we can literally copy/paste them to our CFMX programs. The Query we just executed was our (soon-to-be famous) Phone List.
There is much more you can do with ViennaSQL: create databases, create or alter tables, create views, etc. (depending on the capability of the specific database system). A more comprehensive treatment of ViennaSQL is beyond the scope of this article, but I suggest you review the documentation and spend some time experimenting with the program. It is time well invested and will be paid back many times over.
It needs to be said that using a powerful, interactive tool like ViennaSQL requires a certain discipline. It is possible, with a few keystrokes, to irretrievably delete (or modify) all of the records in a table, or even drop entire databases. Proceed responsibly!
I should also note that CFMX, ViennaSQL, and other programs can access the databases concurrently -- though some database systems may not support advanced RDBMS features such as transaction isolation, locking, rollback, and deadlock detection/avoidance. CFMX contains features that help prevent problems that can occur with concurrent database access and modification; other languages may not offer similar protection. My advice? You should limit your concurrent database access and modifications to the lowest-common-denominator of what is supported by the underlying database system and the individual programs and programming languages used to access it.
We will not cover the setup of ViennaSQL connections for each individual database system that we interface from this point on. But the procedure is the same for each database -- only the connection details are different. The connection details can be copy/pasted between the CFMX Administrator and ViennaSQL Connection configurator. If you plan to use the database at all, take a few moments and set up a ViennaSQL connection.
Where Do We Go from Here?
There are quite a few other databases that can be interfaced to our CFMX Mac OS X developer system, and many other related topics that we can explore. Here's your chance to contribute! Below is a list of topics that are on the "To Do" list. We want you, the readers, to prioritize them for us. If you don't see the topic you want, feel free to add to the list.
- Use the
>> and << buttons to move topics between Available and Chosen Topics.
- Use the
Up and Dn buttons to change priority of Chosen Topics.
- Use the
New Topic button and text box to enter a New Topic.
- When finished, email your selection with the
Send Your Topic List button.
Dick Applebaum
has been doing Web development since 1997, primarily with ColdFusion -- including his latest challenge to port ColdFusion MX to Mac OS X.
Return to the Web Development DevCenter.

Post your comments and questions for Dick here.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 46 of 46.
-
Dreamweaver integration with Coldfusion with Tomcat
2004-09-29 02:19:26
jane_
[Reply | View]
-
Building Apache Connector for JRun4 and CFMX
2004-09-20 12:43:59
rodthomas
[Reply | View]
-
Forget this: go direct to Macromedia
2004-05-05 08:33:06
Chriscypher
[Reply | View]
-
pointbase development
2003-05-29 16:13:28
lanegood
[Reply | View]
-
Starting the CF Server on Start-up
2003-05-21 05:55:03
anonymous2
[Reply | View]
-
Mail server doesn't work..
2003-03-27 10:16:50
anonymous2
[Reply | View]
-
Problem with Java 1.4.1 - The Solution?
2003-03-24 16:33:05
anonymous2
[Reply | View]
-
***WARNING: Issues with Java 1.4.1
2003-03-14 07:39:58
dicklacara
[Reply | View]
-
***WARNING: Issues with Java 1.4.1
2003-07-24 16:14:04
anonymous2
[Reply | View]
-
***WARNING: Issues with Java 1.4.1 - QUICK FIX
2003-03-27 11:21:06
anonymous2
[Reply | View]
-
***WARNING: Issues with Java 1.4.1
2003-03-20 02:38:50
lolajl
[Reply | View]
-
server problem?
2003-03-08 19:51:43
anonymous2
[Reply | View]
-
server problem?
2003-03-09 05:40:34
dicklacara
[Reply | View]
-
server problem?
2003-03-10 17:17:19
jchoe
[Reply | View]
-
server problem?
2003-03-10 17:58:18
dicklacara
[Reply | View]
-
Re: Safari
2003-03-01 20:19:05
anonymous2
[Reply | View]
-
New Safari Broke My Setup...
2003-02-12 14:14:59
brianimator
[Reply | View]
-
Can't connect ViennaSQL
2003-02-06 09:06:28
dicklacara
[Reply | View]
-
Can't connect ViennaSQL
2003-02-06 08:00:50
anonymous2
[Reply | View]
-
Can't connect ViennaSQL
2003-02-07 11:47:44
brianimator
[Reply | View]
-
Can't Create Database
2003-02-05 14:46:10
dicklacara
[Reply | View]
-
SQL4X Manager J and MySQL jdbc driver
2003-02-04 07:04:57
lolajl
[Reply | View]
-
SQL4X Manager J and MySQL jdbc driver
2003-02-05 14:41:08
dicklacara
[Reply | View]
-
Can't Create Database
2003-02-04 07:03:01
lolajl
[Reply | View]
-
Can't Create Database
2003-04-10 08:03:27
anonymous2
[Reply | View]
-
Can't Create Database
2003-02-05 14:46:19
dicklacara
[Reply | View]
-
One last Q (I hope:))
2003-01-31 15:24:40
brianimator
[Reply | View]
-
One last Q (I hope:))
2003-01-31 16:54:14
dicklacara
[Reply | View]
-
One last Q (I hope:))
2003-01-31 19:48:54
brianimator
[Reply | View]
-
Aargghhh!!! Deadlines Approach!!
2003-01-31 01:10:07
anonymous2
[Reply | View]
-
Aargghhh!!! Deadlines Approach!!
2003-01-31 09:12:30
brianimator
[Reply | View]
-
Aargghhh!!! Deadlines Approach!!
2003-01-31 10:23:19
dicklacara
[Reply | View]
-
Aargghhh!!! Deadlines Approach!!
2003-01-31 04:29:31
dicklacara
[Reply | View]
-
thanks for the help
2003-01-28 07:01:23
pablo2001
[Reply | View]
-
Vienna & MySQL
2003-01-22 21:44:08
jodeo
[Reply | View]
-
Vienna & MySQL
2003-01-24 19:29:50
dicklacara
[Reply | View]
-
problem cf debugging
2003-01-20 21:03:22
anonymous2
[Reply | View]
-
problem cf debugging
2003-01-21 07:22:22
dicklacara
[Reply | View]
-
problem cf debugging
2003-01-21 11:38:54
anonymous2
[Reply | View]
-
problem cf debugging
2003-01-21 12:27:20
dicklacara
[Reply | View]
-
problem cf debugging
2003-01-21 12:58:17
anonymous2
[Reply | View]
-
Problem with Charting
2003-01-20 13:05:22
lee.smith@mac.com
[Reply | View]
-
Problem with Charting
2003-01-20 14:20:33
dicklacara
[Reply | View]
-
taglibs with cfmx
2003-01-19 02:06:37
anonymous2
[Reply | View]
-
Taglibs do work with CFMXJ2EE
2003-01-20 07:41:06
dicklacara
[Reply | View]
-
taglibs with cfmx
2003-01-20 00:49:33
dicklacara
[Reply | View]

|
Dreamweaver MX
Coldfusion MX (coldfusion_61_other.jar)
Apache (installed)
Tomcat (5.0.28 from http://jakarta.apache.org/site/binindex.cgi)
mySQL - CompleteMySQL-4.0.15.dmg from http://www.serverlogistics.com/mysql.php
and Drivers/ConnectorJ.pkg (3.0.6)
I followed the instructions here -
http://www.macromedia.com/support/coldfusion/j2ee/cfmxj2ee_mac_onjrunandtom.html
I did comment out the tools.jar file, despire being unsure what version of JRE I have.
I've connected Dreamweaver up with a site defined like so:
Local root folder: Macintosh HD:Users:jane:SitesLocal:1000Monkeys:
Remote info: Access: local/Network
remote folder: Macintosh HD:usr:local:jakarta-tomcat-5.0.28:webapps:cfusion:1000Monkeys:
Testing server: Model: Coldfusion
Access: local/Network
remote folder: Macintosh HD:usr:local:jakarta-tomcat-5.0.28:webapps:cfusion:1000Monkeys:
URL prefix: http://127.0.0.1:8080/cfusion/1000Monkeys/
It's al *almost* working. I can embed CF tags in my Dreamweaver .cfm files, press F12 and hey presto, the data from my mySQL database is populating my forms.
But when I try to use the Application bar to embed coldfusion dynamic objects, I get an panel popping up with 5 tasks I need to do first, the first three ticked and the last two not. It's saying that I have to set up an RDS login and configure a data source.
When I click on RDS login, it says that the URL for the testing server is not correct or ColdFusion is not running - which I know to be untrue, as my directly edited pages work.
I've hunted around, and this is a very common problem. None of the solutions that anyone has found applies to me.
I do have the RDS servlet enabled in my web.xml file, like so.
<servlet-mapping id="macromedia_mapping_5">
<servlet-name>RDSServlet</servlet-name>
<url-pattern>/CFIDE/main/ide.cfm</url-pattern>
BUT - I don't think RDS is installed on my machine, because the ide.cfm file mentioned above is not there.
BUT - I don't understand why I need it, since my site is set up to be local.
I cannot access any RDS configuration from the coldfusion admin directly. I think this is again because RDS is not installed. To set or clear an RDS password, I have to type in a URL like so
http://localhost:8080/cfusion/CFIDE/administrator/security/cfrdspassword.cfm
BUT - I don't think this is achieving anything as RDS is not there.
I suspect that Dreamweaver needs RDS to use the Application toolbar, even though my site is local/network. Is this true?
Also, I don't know why I don't have RDS - I copied over the rds.jar file and renamed it to CFIDE.jar so that Tomcat could install it, just as the instructions say.
Finally, I read this
http://www.macromedia.com/support/coldfusion/releasenotes/mx/knownissues_mx_j2ee_p2.html which says
The Macromedia Dreamweaver MX ColdFusion Component Browser will not function if you install ColdFusion MX for J2EE on your application server with a context root other than "/". The component browser only works if ColdFusion MX for J2EE is deployed at "/".
I'm not clear what my context root is, but I followed Macromedia's instructions.
Please can anyone help?