Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Client/Server Interaction - Grails (Client) / C++ Server backend

Posted on 2014-02-07
2
516 Views
Last Modified: 2014-02-26
I'm considering use of Grails for a client app.   My server side software is predicated on C++.   There's a C++ library called Portable Components (POCO) that I could use as a frontend to my server code to handle client request/response.  

Let's assume I use an Apache web server.   Need someone to highlight how client written in Grails (Java) will communicate with C++ Server backend via apache web server?   I'm new to all this and it's unclear to me how request/response transactions will get routed through an apache web server while invoking client/server functionality in different languages.


Let's now assume there's no Apache web server.   I suspect I could send HTTP Request/Response using an appropriate Grails/Java library?   No 'need' for an Apache server?
0
Comment
Question by:forums_mp
2 Comments
 
LVL 27

Accepted Solution

by:
dpearson earned 100 total points
ID: 39843726
Let's now assume there's no Apache web server.   I suspect I could send HTTP Request/Response using an appropriate Grails/Java library?   No 'need' for an Apache server?

Yes that's right.  The Java client will be sending HTTP calls to somebody.  It can be your own C++ server app which could open a socket to listen for connections on port 80 (http) and then parse the request and respond correctly to the HTTP protocol.

Or you can use another app to do this HTTP interpretation for you.  Let's call that other app the apache web server (or actually any other web server), since that's what it's job is.  Taking HTTP requests and sending back responses.

Then the question is how does the request that apache is processing get to your C++ code?  There are several different ways.  The old classic is using CGI (http://en.wikipedia.org/wiki/Common_Gateway_Interface) which fires up a process on the web server and can run your code.

Hope that helps,

Doug
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39843948
Let's now assume there's no Apache web server.   I suspect I could send HTTP Request/Response using an appropriate Grails/Java library?   No 'need' for an Apache server?
Is the server speaking HTTP? That's unusual for something that's not a web server...
I would have thought that it would use TCP/IP with some kind of (perhaps custom) protocol
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat not starting 6 68
hibernate example using maven 12 58
difference between sorce folder and folder in eclipise 3 28
Html Table Looping (part 2) 5 27
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question