Google App Engine backend service(module) with Java - java

I am a newbie in Google App Engine. I am trying to create a service (previously called "modules") in Eclipse in Java. I didn't find any resources which shows a step-by-step guide to create a service for app-engine in eclipse or any other IDE. What are the configuration files I need to take care of?
I have tried to find docs on cloud platform and everything says about having front-end. There are articles about micro-service architecture and migrate an existing app. But I don't have an existing app. Every tutorial talks about cloning an hello world app and deploying it which shows hello world with appspot url. But didn't found anything for the service(module).
The service I am trying to create does not have a front-end. It just runs in the background and watch the database and sends emails and notifications to the users based on database change. This is not an API and there isn't any request-response architecture.
How can I achieve this?
Any reference material or samples which can guide me to the right direction?

To set up an App Engine project you could have a look at Romin Irani tutorials which are very good (https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.qclm8gyd9).
There is also a free MOOC on Udacity which covers Endpoints with Eclipse: https://www.udacity.com/course/developing-scalable-apps-in-java--ud859
Both cover the building of Endpoints and querying them from front-ends, which I understand is not your goal. But the Udacity course covers Cron jobs and sending of emails (both in Lesson 5), which is what you would use for your needs. See also https://cloud.google.com/appengine/docs/java/config/cron#creating_a_cron_job which is very good Google documentation.
So in a nutshell: I would start by Romin's tutorial to understand Eclipse set-up and main concepts, then follow Udacity MOOC (especially part on Cron and mail) and then dive into the Google doc for the fine tuning of your development.
Last but not least, for sending emails, nowadays, Google advice to use Sengrid. But I think it worth following the Udacity lesson on sending email, even if you switch from native email sending to Sendgrid later on. Again, the doc is complete and clear.
Hope this helps!

Related

Video / Voice Chat Web Application with Java

I am trying to add a voice / video chat feature to my web-based chat application developed in JavaEE.
I have not found any tutorials on how to achieve that with both Server and Client written in Java (no javascript allowed).
Is there any tutorials that can help me (using websockets for example) ?
You might check out the github project Jitsi. I don't know exactly what tech they are using, but there is a Java version and the code is available for inspection. They may have a forum. I have only taken a cursory look but was reminded of the project by your question.

How to use WebRTC in GAE/J Project

I want to start Video Session on a specific date and time between two users of my application.The Application is written in Java on Google App Engine.
I know about the Twilio SMS/Voice Services ,but GAE docs don't mention about how to have Video Calls.
I have looked into TOKBOX API, which seems a good fit, but what i want to know is , is there a better way to have a Scheduled Video Call in Google App Engine. Is there any bundled service i can use.
Thank You
TokBox has created a Starter Kit called ScheduleKit that has about the same purpose. The UI is modeled like a customer support application, and it also emails a reminder for the video chat. The sample code is built in PHP, but it can easily be ported to work with Java. Take a look at the OpenTok Java SDK.

Web Service from Google App Engine/ Google Web Tool kit?

I am a total beginner to web programming.
I'd like to create a web service using GAE/GWT with Java which functions similarly to how WCF from the .NET platform works. Is this possible?
I've been researching for a while and there are no really good solid examples. If someone could point me to good reading or examples then I'd be happy to take a look.
I checked this out : How to write a Web Service for Google App Engine?
However, that is python.
I'd recommend to read the tutorial at the GWT official site. The StockWatcher example teaches how to write an application, and discusses the different ways to retrieve information from the server. It works in either GAE or any other servlet container, it has even an example about how to create the web service in a php and consume it.
The left index of the tutorial is not correctly sorted because the gwtproject.org site documentation is produced automatically, but clicking on the next step link in each page you go to the next one.
[EDITED]
Index of the GWT project is now correctly sorted after my changes

How to connect android app with data store on app-engine

I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..

Simple blog written in java for GAE

My website is deployed on google app engine. Now, I'd like to create a new page/section in my web site to add a blog.
I'm wondering if you know a simple blog written in java that could be deployed on Google app engine? I'm not afraid to edit this code...
Many Thanks!
P.S : my subject is not a duplicate. The other solutions are for python and their assume that your deploy ONLY the blog on your google server.
B3log Solo is a very active open source blog system based on GAE/Java, while currently multi-languages are not so well except Chinese-Simple. If you are interested in it, please loop here. I am very welcomed to help with how to config to run it in GAE.

Categories