• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web services and Grails

 
Pratap Chatterjee
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lanny Gilbert
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic