Write your class, compile it, install it into the WEB-INF/classes or
WEB-INF/lib directory just like any other J2EE application, and then
instantiate it from CF:

<cfset myObj = createObject("java", "package.MyClass").init("hello, world") />

Rumor has it (though I've never tried) that you can enable a couple
settings in your jrun-web.xml file to do auto compilation, so you
actually just drop you .javas in to the WEB-INF/classes directory, and
JRun will take care of compiling them whenever they change.

cheers,
barneyb


On Thu, 17 Mar 2005 11:00:40 -0500, Nurse, Robert (Cont, ARL/CISD)
<[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I'm very interested Java development.  I'm comfortable with Java
> programming.  But, I'm trying to form a professional experience base.
> I'd like to get started by writing classes for use in my CF
> applications.  The question I have is, where do I begin?  Can someone
> point me to introductory documentation or books on interfacing my Java
> class with CFMX (v. 6.1)?
> 
> Thanks.
> 
> Robert Nurse
> STG
> Contractor - Applications Development
> Enterprise Management Center
> Computational & Information Sciences Directorate
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5264
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to