It's not a secret anymore!
The moose likes Groovy and the fly likes Talking to Grails Project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Reply locked New topic
Forums: Web Services Groovy

Talking to Grails Project?

J Solomon
Ranch Hand

Joined: Oct 08, 2012
Posts: 30
I currently have a grails project running in tomcat that acts as a container for a bunch of various information. I would like to build a client app (using java) that is capable of querying the grails project for particular information, based on parameters passed to it. I'm curious as to the best approach for something like this. My first inclination is to build the client in such a way that it just directly querys the DB on the back end of the grails project (the grails project will then just be used as an entry/modification method for the data). I was wondering if there is a better approach, maybe building a particular URI and then sending a GET request to the URI (this seems like a better approach as you only have one entry point then and you are not mucking directly with the DB). Just looking for some input from anyone who has worked on anything similar. Thanks in advance.
Matthew Brown

Joined: Apr 06, 2010
Posts: 4543

Duplicate post at (replies there, please, as there's already a response to that one)
I agree. Here's the link:
subject: Talking to Grails Project?
It's not a secret anymore!