If you want to use Java (which I'd recommend), baseically all you need to do
is come up with a language specification (or use CFML's), and then create a
system that will convert that language into Java source code, which can then
be compiled as you would any other Java class.  Along with that comes the
need to be able to do some reflection so that you can translate errors in
the Java back to the appropriate CFML (or whatever), as well as keep track
of when you need to update your Java files, based on the modification dates
of the templates.

In addition to the basic compilation, you'll also probably want to provide
functionality that Java doesn't provide, or at least encapsulate it into
more easily usable pieces, like CF does with CFQUERY and datasources.  Keep
in mind that you can also perform encapsulation with internal CFML (or
wahtever) templates, like CF does (for instance, CFDUMP and CFSAVECONTENT).
You'll definitely want to decide which pieces to encapulate first, or you'll
be throwing away alot of compilation work, because it'll become unneeded.

Apache Tomcat is a free Java Servlet container which would serve as a good
base, assuming you follow the CFML compiles to Java Servlets pattern, which
makes the most sense to me of the other options that come readily to mind.
I wouldn't worry about making deployment easy until you have a working
system, so I'd see the system initially working like this:

1) write the template in CFML or whatever
2) run a command line compiler to make the Java source
3) copy the Java source to the Tomcat application directory
4) load the pages and let Tomcat automatically compile the .java files into
.class files for you, as well as take care of putting them in the right
place in the filesystem.

Then once you have a langauge that you can use, you can start worrying about
rolling step 2-4 together.  You'll want a Tomcat app that encapsulates your
CFML-Java compiler, and then your CFML applications would be housed within
that application.  You'd want to set up an alternative mapping to your
compiler app so that it runs based on .cfm, rather like Struts' setup with
the .do extension.

Hopefully that all makes sense.

Footnote: I'm relying on logic here, not any actual experience working with
such a system, so don't flame me.  However, while I have no intention of
writing such a system, I'd be interested to hear feedback and suggestions.

barneyb

> -----Original Message-----
> From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 31, 2003 9:33 AM
> To: CF-Talk
> Subject: OT: CF Capability but not CF.
>
>
> Does anyone know where or how I can learn about writing my own application
> server such as Blue Dragon has. This really interests me. Not that I could
> compete I would just like to know how it is done.
>
> ============================================
> Bryan F. Hogan
> Director of Internet Development
> Macromedia Certified ColdFusion MX Developer
> Digital Bay Media, Inc.
> 1-877-72DIGITAL
> ============================================
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to