Paul,

        From the info you gave it doesn't sound like you did anything conceptually
wrong.  A couple things... Is there a constructor for the object that you
created with arguments? Your not trying to execute the main() method from CF
right? Try writing a Java CFX tag, it's very simple, here's a template:

import com.allaire.cfx.*;

public class CFX_Template
        implements CustomTag
{
        public void processRequest(Request request, Response response)
                throws Exception
        {
                String arg1 = "default_value";
                if ( request.attributeExists("arg1") ) {
                        arg1 = request.getAttribute("arg1");
                }

                //Object o = new MyObject(); ...

                response.write(arg1);
                response.setVarible("arg1", arg1);
        }

}

-----Original Message-----
From: Paul John Summers, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 8:20 AM
To: CF-Talk
Subject: Executing Java objects from CF

I'm trying to connect to a secure server, send a post request (an XML
doc) and receive a response (another XML doc) over that connection. I
have written a Java object that, when run from the command line,
performs this operation just fine. However, when I create the object and
run it in a CF file, it doesn't execute properly. I know I am creating
the object fine but because I can access instance variables using their
getter and setter methods. It even creates the new XML document but that
document has no data in it. When run from the command line, this whole
process takes up to 20 or 30 seconds but when run from CF, it completes
instantly, as though it's not waiting for the response from the remote
server.

Can anyone offer some advice regarding this? PLEASE!!

Thanks in advance,
Paul



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to