| Author |
Web services and Grails
|
Pratap Chatterjee
Greenhorn
Joined: Sep 05, 2008
Posts: 3
|
|
Will the performance of grails application be better if I use plain Grails Object Relational Mapping to Oracle database instead of mapping the domain objects using web services.
|
 |
Jon Dickinson
Author
Ranch Hand
Joined: Feb 24, 2009
Posts: 45
|
|
Hi Pratap,
I would expect performance to be faster if your client code used GORM to access a database, rather than a web service. When using GORM, or any other framework in the same JVM as your client, the only potential source of network contention is when querying the database on a remote machine. When you introduce web services you now have to wait for two network calls, one to the web service and one from the web service to the database, to get your results back.
Cheers,
Jon.
|
Jon Dickinson
Accolade Consulting
Grails 1.1 Web Application Development
|
 |
Lanny Gilbert
Ranch Hand
Joined: Jun 11, 2002
Posts: 103
|
|
|
Actual webservice question as follow up.. Does your book go into detail on how to take a WSDL file and call various webservice operations based on the WSDL in Groovy/Grails?
|
 |
Jon Dickinson
Author
Ranch Hand
Joined: Feb 24, 2009
Posts: 45
|
|
Hi Lanny,
My book does not cover SOAP web services.
In chapter 12 I show how to implement a REST web service and refer the reader to the XFire and Axis2 plug-ins that provide support for SOAP web services in grails. The documentation for these plug-ins can be found here:
http://grails.org/plugin/xfire
http://grails.org/plugin/axis2
Cheers,
Jon.
|
 |
 |
|
|
subject: Web services and Grails
|
|
|