wood burning stoves*
The moose likes Groovy and the fly likes Web services and Grails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Web services and Grails" Watch "Web services and Grails" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web services and Grails
 
Similar Threads
How Dependable is Grails...for GIS-Java Apllication Domain?
What does Groovy/Grails offer?
Grails for Web Services
How to integrate flex with grails?
GRAILS:A Beginner