leftPeg
04-19-2005, 03:14 AM
Is it possible to call a Java class directly from my Action Script if I'm using CFMX Standard? or do I need CFMX for J2EE?
I've looked at this
http://www.macromedia.com/support/flashremoting//ts/documents/presalesfaq.htm#javafiles
and thought that by putting my jar files in /opt/coldfusionmx/runtime/servers/default/SERVER-INF/lib
or putting my classes in
/opt/coldfusionmx/runtime/servers/default/SERVER-INF/classes
it should work.
But if I try
NetServices.setDefaultGatewayUrl("http://192.168.0.73/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var service_HelloWorld = gw.getService("path.to.class.HelloWorld",this);
I get the following error in the debugger
Service threw an exception during method invocation: No service named path.to.class.HelloWorld is known to Flash Remoting MX."
I have no problems calling a CFC via the gateway, so I know Flash remoting is working.
Any advice/help would be welcome.
L.
I've looked at this
http://www.macromedia.com/support/flashremoting//ts/documents/presalesfaq.htm#javafiles
and thought that by putting my jar files in /opt/coldfusionmx/runtime/servers/default/SERVER-INF/lib
or putting my classes in
/opt/coldfusionmx/runtime/servers/default/SERVER-INF/classes
it should work.
But if I try
NetServices.setDefaultGatewayUrl("http://192.168.0.73/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var service_HelloWorld = gw.getService("path.to.class.HelloWorld",this);
I get the following error in the debugger
Service threw an exception during method invocation: No service named path.to.class.HelloWorld is known to Flash Remoting MX."
I have no problems calling a CFC via the gateway, so I know Flash remoting is working.
Any advice/help would be welcome.
L.