« Return to Thread: How do you test your MG apps?

Re: Wondering if this is possible.

by Andrew Scott-4 :: Rate this Message:

Reply to Author | View in Thread

Damn you Sean,
 
I went looking on your site and I know it was there, because it had something to do with some internal work you guyts had been doing. I think you created a facade for it though:-)
 
Ok, I agree with the circumvents.
 
But lets look at the bigger picture for a minute. I have code that does some basic calls to get some data out of the DB, I then have my business logic to return what I need to do.
 
But somewhere along the way my boss comes along and says we want to release this as a webservice to our other applications that might be running on other servers.
 
So I figure, well I already have that code in my model code, so why not call it as a webservice and return the data that way. MG:U is still happy, but if I can't use that application and have its webservices conect with MG:U for the coldspring and reactor framework, I might as well maintain 2 sets of code that does the same damn job.
 
And too me that seems to be pointless.
 
Ok for those who are mroe curious, we have an intranet system moving into the MG:U framework approach and we have an external intranet for other customers in the works, but the functionality of both comes from a core business model with the same functionality. So I do not want to be maintaining 2 sets of code.
 
And I certainly do not want to say to these customers outside of us, that we want you to call ?event=getFlights instead of /webservice/components.cfc?method = getFlights

Hope that clears my intentions up more, but as I said I have a workaround just would prefer to extend the framework instead. But I guess I can use my hack and extend that instead... *LOL*
 
 
 

 
On 11/2/06, Sean Corfield <seancorfield@...> wrote:
On 10/31/06, Andrew Scott <Andrew.Scott@...> wrote:
> Awhile ago I saw a post where, Sean had extended the Reactor framework
> through a webservice / cfc.

Since you invoked my name...

I have no idea what you're talking about here.

Can you provide a URL for the "post" you are talking about?

I certainly have not "extended the Reactor framework through a webservice"...

As others have pointed out, using an AJAX library to call a CFC as a
webservice completely circumvents Model-Glue. Perhaps you are
misunderstanding both whatever you think I posted as well as what
Model-Glue provides for you?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/


 « Return to Thread: How do you test your MG apps?

LightInTheBox - Buy quality products at wholesale price