Hi,
Wonder if anyone might be able to help me...
I've recently started using LCDS2.5 and managed to get a demo app
working, connecting to our app database etc.
I then tried to port our existing app into LCDS, which is a Cairngorm
app, and tried to translate one of the existing web services to a
remoteObject instead - coincidentally (well not really!) the
remoteObject I managed to get working in my 'demo'.
The problem is, however, that the remoteObject never seems to get invoked.
The Services.mxml contains:
<mx:RemoteObject
id="dbService"
destination="database"
showBusyCursor="true">
<mx:method name="executeSQL"/>
</mx:RemoteObject>
And the delegate looks like this:
package com.db.storage.business
{
import mx.rpc.IResponder;
import com.adobe.cairngorm.business.ServiceLocator;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
public class DSDelegate
{
private var responder:IResponder;
private var service:Object;
public function DSDelegate(responder:IResponder)
{
this.service = ServiceLocator.getInstance().getRemoteObject(
"dbService" );
this.responder = responder;
}
public function executeSQL(query:String):void {
var call:AsyncToken = service.executeSQL( query.toUpperCase() );
call.addResponder( responder );
}
}
}
In debug, the DSDelegate function is invoked and the executeSQL is
also invoked but nothing ever seems to get fired (or, of course,
returned). I don't think the remoteObject is being fired at all since
there's no console message indicating that it is (I have the log set
to show all activity).
The remoting-config.xml is identical to the non-cairngorm demo that
works as is all of the java side code - the only thing that's changed
is that I've tried to introduce Cairngorm to the equation.
I know this is hard to comment on without being closer to the codeline
but I was just hoping someone here would have a suggestion - we
basically have until friday to get this working properly or else we're
going to most likely abandon using LiveCycle Data Services entirely -
our experience so far with the product has been pretty miserable -
this is pretty much the final straw. I'd like to push on with it
because it *should* offer us some nice new functionality, particularly
the ability to produce PDF files displaying flex charts in them - but
there's a limit to how long you can try to keep the flame burning!
So anyway, all help, comments, suggestions etc gratefully received!
Thanks,
Jamie.