I'm creating a web app that runs on Google App Engine. I'm also developing a desktop client that needs to access/update data on the webapp.
I would like to create a web sevice api between the server and the client. What would be my best options?
According to GAE the do not support RMI og JAX out of the box.
I hate to answer my own question but Restlet is working on a GAE version. The current development version seems to work well.
http://wiki.restlet.org/docs_1.2/13-restlet/252-restlet.html
Related
I am slightly confused with the Firebase client library that is available for Java. In the documentation, it says that the library should be used on the server. Recently, I came across Google App Engine. A PaaS service that allows application code to be put in the cloud.
Could I write the server code using the Firebase client library and deploy that as application code on Google App Engine? That way my application could connect with Firebase through the App engine.
I am asking this questions from the perspective of creating a Java application; the same libraries available for Android are not available for Java desktop applications. The only library that can be used in Java is the server library.
Thank you.
That is possible with the firebase-server-sdk.
You find an example deploying a servlet to appengine and access firebase from within the servlet here: https://cloud.google.com/solutions/mobile/firebase-app-engine-android-studio
Just skip the android stuff and scroll down to MyServlet source code.
But be aware of the scaling setting you need to use firebase on app engine.
I'm going to start developing a new simple "X management" kind app, like contact management or events management. What I want to know is which tools would be the best to achieve it in the way I want.
My app needs to be a web app running on a server that has a mysql database to save and retrieve some simple information. This app must have a web client but I want it to be able to be extended to work with an Android app client.
Things I've thought:
I've worked on Java with facelets and JPA travels management app running on a GlassFish server on localhost with a JSF web view, so maybe my web client and the full app could be done with this.
I've worked with web services such as SOAP and REST with Jaxb and xml schemes to retrieve information parsing some webs into xml or json to show on a client .net app. So I've thought I can add to my app, like last topic we talked about, a REST web service layer to easily work as I want, or at least I think it would be easy. If I do this the Android app could share the same app core code but using the REST service.
My question is what could be the best way to do an app with 2 client side in different platforms that could share some code to be easy to extend it moreover to a desktop app. I've talked about these 2 options because I'm a students of computers at university and those are the tools I know, but I can easy learn more. I've also think about just a REST service and create a web and an Android client to work on same service or something like that.
This post is getting long, so here is the summary: What technologies and tools do you think are the best choice to create an java web app that needs to have web and Android client? Also what server, like tomcat, GlassFish or another, should I use? And what about persistence layer? JPA with mysql is the best I know to work with.
Thanks a lot.
P.D: I work with eclipse
From my point of view:
You can use java jersey and java spring both ( java spring as Dependency injection) for creating RESTful Web service. So, In server side you will create endpoint and you can access data from any platform through those endpoint.
Server can be anyone. It's up to you. I always try to use tomcat but tomcat is not a full JavaEE container it's only a servlet container. So if you want to use full JavaEE version then you should use Glassfish.
And yes JPA .It can be easily used in any environment supporting JPA including Java SE applications, Java EE application servers, Enterprise OSGi containers etc.
On the other hand, still choice is yours.
I've come from a C#.NET development, have developed and implemented RESTful services in Visual Studio with WCF hosted on IIS, but now I need guidance on one of my project requirement, to develop RESTful service with GlassFish Server Open Source Edition 4.0 (not Oracle GlassFish), found here:
https://glassfish.java.net/download.html
I have no idea about Java and GlassFish, so if any tutorial post or video provided will be highly appreciated. What all sorts of application software do I need to install and what will be the development environment? I mean every step involved in the process of developing in GlassFish.
Also is there any way to develop RESTful service in C#.net and deploy on GlassFish 4?
I've done REST web service with C# and with Java and, basically, both technologies are quite similar. I would recommend you to spend some time learning the servlets, understanding then and with your knowledge of web services you will find no problems to implement your service.
Additionally, yopu could also take a look to the Java technologies specifically implemented for REST like "JAX-RS: Java API for RESTful Web Services" (https://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Services). This may help you, but I would begin with the basics of a servlet and the servlet container (GlassFish).
I'm new to Google App Engine.
I know the Cloud concept and I know a bit about the API and Storage of GAE.
Problem:
One Desktop application (Java, Swing) needs some services. These services should be given to the app via HTTP/HTTPS.
For example the app sends some parameters and receive a result (String(s)).
Is GAE good for providing the services to the App?
If so, What is the best point to start?
Thanks in advance
Maybe you could create a web service and put it on GAE. So that could be way how to use it from your Swing app.
There is no reason why this approach shouldn't work.
I am a newbie to Android platform.
I want to call a webservice from android java development enviornment. Am using axis technology to connect to a webservice in java development.
Can i use the same technology here in android development also.?
one more doubt am having is am using several jar files (like axis,commons-logging,commons-httpclient) in java dev enviornment for webservice call and its implementations.
Can i use these jar files in android java dev platform.?
Experts please give me a clear idea about all these..??
if your web service is SOAP you can use KSOAP2, it enables you communicate easily with SOAP web service. if your web service is REST you can then use classes like HttpClient, HttpGet and HttpPost that exist already on Android.
Your question has already been asked here.
It isn't possible to use Axis or some other framework as is with Android. You will have to recompile all jars with Android SDK in order to do so.