|
Extending LocalService
|
Sam Shrefler
|
Jan 13, 2006 12:09 PST
|
In the tartan samples, contactService.cfc in the contacts directry extends
LocalService.
When I use the contactServiceProxy, it then calls invokeLocalService from
LocalServiceProxy which has in it
<cfinvoke component="tartanSamples.contacts.tartan.services.ContactService"
method="#arguments.method#"
argumentcollection="#newArgs#"
returnvariable="result"/>
This is the point in the code which I'm having a problem.
That cfinvoke is what is giving me a problem. It calls
ContactService.getContactList() which then calls execute which comes from
LocalService.cfc
execute() is throwing an error from this:
<cfif IsObject(variables.serviceContext)>
<cfreturn variables.serviceContext.executeCommand(arguments.name,
arguments.data)/>
<cfelse>
<cfthrow type="Exception.ServiceContextNotAvailable"/>
</cfif>
because variables.serviceContect is not an object.
Is this because ContactService is never running init()?
Thanks
Sam
|
|
 |
|