|
Re: Extending LocalService
|
Paul Kenney
|
Jan 13, 2006 17:20 PST
|
So, is the contact manager working now?
On 1/13/06, Sam Shrefler <sshre-@gmail.com> wrote:
| |
Forget it, there was a problem with my configs that caused this problem.
On 1/13/06, Sam Shrefler <sshre-@gmail.com > wrote:
| |
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
|
|
--
Paul Kenney
pa-@pjk.us
pken-@gmail.com
http://www.pjk.us
|
|
 |
|