Welcome Guest!
 Tartan Framework
 Previous Message All Messages Next Message 
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
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.