On Fri, 2004-03-12 at 12:06, Jeff Chastain wrote:
> I am attempting to use CFMX to connect to a Java .jar file, but I am not
> quite sure how to get this setup.  The Macromedia LiveDocs have the
> following quote in terms of using CFMX to access and invoke methods from a
> Java .jar file.
>  
> ----------
> The cfobject tag makes Java objects available in ColdFusion MX. It can
> access any Java class that is available on the JVM classpath or in either of
> the following locations:
>
> * In a Java archive (.jar) file in web_root/WEB-INF/lib
> * In a class (.class) file in web_root/WEB-INF/classes
> ----------
>
> Now, my IIS webroot does not have a WEB-INF folder, but my Tomcat server
> (same box) does.  However, my Tomcat server is running on port 8080.  Do I
> need to put this .jar file in the Tomcat WEB-INF folder or am I missing
> something all together here?
>
> Any pointers?  If it was not obvious, I don't typically deal with Java code
> or environments, so this is all new.
Hi Jeff,
Basically you just need to get the .jar into the CFMX classpath so it is
loaded at start up. You can do it by putting the jar file in that folder
(often the WEB-INF is in C:\CFusion\wwwroot || /opt/coldfusionmx/wwwroot
I think - somewhere there abouts anyway. Another way is to put the jar
file any place you like and add it to the class path setting in
administrator. That should work most of the time (unless the jar file is
needed by cfmx I believe.

Once the jar is in the class path, it will be loaded when you start cfmx
(tomcat or whatever). The jar files classes can then be created with the
createObject family

--
Rob <[EMAIL PROTECTED]>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to