How to create a JPA application using Google's datastore in Eclipse? What are the steps to create a Google App Engine application in Eclipse?
First, install the Google Plugin for Eclipse. Second, check Getting Started: Java and especially Creating a Project. Follow the documented steps. Third, jump to Using JPA with App Engine.
Related
We've switched to using the new Cloud ADK based Maven plugin for App Engine described here:
https://cloud.google.com/appengine/docs/standard/java/tools/migrate-maven
All works fine, but there's one use case I wasn't able to see a way to do.
In our CI we build and deploy the version, then after an approval step, we migrate traffic to it.
It looks like the underlying function we need is this:
https://cloud.google.com/sdk/gcloud/reference/app/services/set-traffic
But in the Maven plugin I only saw and option to do a full deploy with promote being true or false.
The workaround we're using is to just re-deploy with promote=true, but that feels wasteful, when all we need to do is promote the already deployed version once it's approved.
My question is, is there a way to do this with the new Maven plugin, or do we switch to the gcloud CLI tool for this sort of thing?
As I looked over all the parameters I would think that there is no way to achieve what you wanted only by using the Maven plugin.
As you already know a good way of achieving your technical purpose would be using the gcloud app services set-traffic command.
Another way which you may take into consideration would be using the Admin API. The Admin API is a RESTful API which can be used with any programming language to manage your App Engine applications.
And if you want you can take a look over Jenkins for Google Cloud. I think it might help you in your CI process.
I am working with a Mobile Application project on ionic framework 3.19.0 with VS Code for Android platform. Where I want to execute few activities like download a apk file from web, checksum validation etc using custom Java Library prepared by other team.
I have searched a bit but not yet getting any suitable guideline or tutorial regarding these issues.
Is it possible to integrate Java Library with ionic and use it's class /function etc or is there other way exist?
Can anybody help ?
Edit:
There are few built in plug-in available for application version check and update (App Update, App Version) activities . Check here
You'll need to develop a cordova plugin if you want to interact with a native android library, can't be done directly through ionic.
https://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html
I am going to develop on Google app engine platform in java and I don't know which eclipse download package I should get.
I don't know if the plugin supplied by Google has everything required and the classic package will sufice or if one could get some advantage downloading one of standard java packages.
Thanks in advance.
The plugin provided by Google Eclipse at https://developers.google.com/eclipse/ has everything that you need to develop GAE applications.
I am not sure what you are referring to as the classic package but if it is Eclipse Classic that you are talking about then it will suffice.
Few other points:
Make sure that you download the correct plugin version for the Eclipse version that you are using. Go to https://developers.google.com/eclipse/docs/download and use the version that matches your installed Eclipse version.
When you begin the process of installing the plugin, you will see a screenshot like https://developers.google.com/eclipse/docs/install-eclipse-4.2 where you will be given the option of what components to install. You can see that one of them is required but the rest are optional. I suggest that you go with selecting atleast the SDKs component.
All the best.
I developed some applications that uses google app engine and from my experience the eclipse plugin that google provides is sufficien but you need to install all the components of it.
I am new in web development , i have developed a small app in GWT , now i want it to be Online for free
what are the steps for that , where to get domain ,upload my files etc .
If you're developing your GWT app in Eclipse with Google plugin - the easiest way for you would be deployment to appengine. It's free Java hosting and it would serve your need for static hosting.
http://code.google.com/appengine/
There would be some configuration overhead, but if you start with generating Appengine project in eclipse with GWT. You get pritty nice configuration from the start.
You can ommit everything about java in the documentation.
I have an existing Grails app and a separate, existing Java app. I would like the Java app to access the same database schema as the Grails app. Is there a way I can rip out the domain classes and GORM dependencies from the Grails app into a library that the Java app can access?
I'd also be happy to hear alternative approaches that would be less work than rewriting my DAO layer in the Java app.
This isn't supported and may or may not work. See
http://www.grails.org/GORM+-+StandAlone+Gorm
You could always use pure Hibernate from your Java app and create the Hibernate model by reverse engineering your existing Grails database scghema.
Here's another workaround:
http://burtbeckwith.com/blog/?p=72
You could use web services and call into grails service classes from the Java app.