You may be right but I'd still like to try...looking at a compiled cfm
template with a single CFINVOKE statement generates the following:

Any tips on how to strip it down and include some basic error handling? :-)

import coldfusion.runtime.*;
import coldfusion.tagext.GenericTag;
import coldfusion.tagext.lang.InvokeArgumentTag;
import coldfusion.tagext.lang.InvokeTag;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.BodyContent;

public final class cftest22ecfm892357642 extends CFPage
{

    protected final Object runPage()
        throws Throwable
    {
        out = super.pageContext.getOut();
        InvokeTag invoke0 = (InvokeTag)_initTag(class0, 0, super.parent);
        invoke0.setComponent("zeus.api.Notification");
        invoke0.setMethod("create");
        int mode0;
        if((mode0 = invoke0.doStartTag()) != 0)
            try
            {
                if(mode0 == 2)
                {
                    out = super.pageContext.pushBody();
                    invoke0.setBodyContent((BodyContent)out);
                    invoke0.doInitBody();
                }
                do
                {
                    _whitespace(out, "\n\t");
                    InvokeArgumentTag invokeargument1 =
(InvokeArgumentTag)_initTag(class1, 1, invoke0);
                    invokeargument1.setName("email");
                    invokeargument1.setValue("EMAIL");
                    if(CfJspPage._emptyTag(invokeargument1))
                    {
                        Object obj = null;
                        return obj;
                    }
                    _whitespace(out, "\n");
                } while(invoke0.doAfterBody() != 0);
            }
            finally
            {
                if(mode0 == 2)
                    out = super.pageContext.popBody();
            }
        if(invoke0.doEndTag() == 5)
            return null;
        else
            return null;
    }

    public final Object getMetadata()
    {
        return metaData;
    }

    static Class _mthclass$(String s)
    {
        try
        {
            return Class.forName(s);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new
NoClassDefFoundError(classnotfoundexception.getMessage());
        }
    }

    public cftest22ecfm892357642()
    {
    }

    private static final String sourceFile =
"C:\\CFusionMX\\wwwroot\\zeus\\test2.cfm";
    static Object metaData = new AttributeCollection(new Object[0]);
    static final Class class1;
    static final Class class0;
    protected JspWriter out;

    static final 
    {
        class1 = coldfusion.tagext.lang.InvokeArgumentTag.class;
        class0 = coldfusion.tagext.lang.InvokeTag.class;
    }
}


-----Original Message-----
From: Matt Liotta [mailto:mliotta@;r337.com] 
Sent: Monday, October 28, 2002 8:36 PM
To: CF-Talk
Subject: RE: Invoking a CFC from Java?

I can't give you an example, but I can tell you it is not easy and
certainly not worth it.

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901

> -----Original Message-----
> From: Stacy Young [mailto:Stacy.Young@;sfcommerce.com]
> Sent: Monday, October 28, 2002 8:27 PM
> To: CF-Talk
> Subject: Invoking a CFC from Java?
> 
> Anyone have an example on how to do this?
> 
> Cheers,
> 
> Stace
> 
> 
> AVIS IMPORTANT:
> -------------------------------
> Les informations contenues dans le present document et ses pieces
jointes
> sont strictement confidentielles et reservees a l'usage de la (des)
> personne(s) a qui il est adresse. Si vous n'etes pas le destinataire,
> soyez avise que toute divulgation, distribution, copie, ou autre
> utilisation de ces informations est strictement prohibee.  Si vous
avez
> recu ce document par erreur, veuillez s'il vous plait communiquer
> immediatement avec l'expediteur et detruire ce document sans en faire
de
> copie sous quelque forme.
> 
> WARNING:
> -------------------------------
> The information contained in this document and attachments is
confidential
> and intended only for the person(s) named above.  If you are not the
> intended recipient you are hereby notified that any disclosure,
copying,
> distribution, or any other use of the information is strictly
prohibited.
> If you have received this document by mistake, please notify the
sender
> immediately and destroy this document and attachments without making
any
> copy of any kind.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to