Using backend service providers with standalone applications - java

I am developing a restaurant POS & ordering system for my college project, I'm hoping to develop a standalone Java/C# (Still deciding) app which would serve as the POS and adding menu items + an android app for waiters to take orders from customers.
I'd like to connect these two apps and for the backend I'm looking into integrating Firebase or back4app since parse is being discontinued, is this a good choice?
I'd like some pointers on how to set up the database connection with a internet based backend service provider like Firebase or back4app with a standalone application.
Please feel free to suggest other possible routes I could take to connect these two apps together.
Thanks!

The Firebase realtime database component includes a JAVA Server SDK and a REST API which could be used for integrating with your standalone application.
There is some JAVA SDK documentation here:
https://firebase.google.com/docs/database/server/start

Related

Can I use Firebase with java desktop app?

I'm developing a java desktop POS System, and I want all the users to be connected together with firebase.
So, can I use Google Firebase with a Java desktop application?
There is no official SDK for using Firebase in client-side Java applications.
You can use some Firebase products through their REST API, but you'll have to write your own client-side access code for that.
There is an official Firebase Admin SDK for use in Java applications. But this SDK grants the users of the application full administrative access to your Firebase project, so it should not be used in Java applications that you share with regular (non-administrative) users.
Also see:
Can google's firebase(Real-time database) work with a java desktop application?
Can google's firebase work with a java desktop application?
Get credentials for desktop Java SE Firebase project
It's extremely round-about. But you can use firebase with desktop using outbound HTTP connections and firebase functions. Just make sure you set up your own client api key or else anyone can mess with your firebase!

How to create java web service to write data to Firebase?

We are creating an Android app and web app using Firebase 3.0.0. Right now both these clients are writing data directly into Firebase database.
We wish to avoid this by introducing Web Services component in between. This component will write data to Firebase, and it will be consumed by Android and Web (or iOS in future) apps.
We have decided to develop web services using Java, we found Firebase JAR for JVM.
There are no Firebase tutorials to implement such a component.
Can we use this JAR for creating web services in Java? How?
Thanks
For the new Firebase, you can use the server SDK from this documentation page: https://firebase.google.com/docs/server/setup. Then start accessing the Database by following the instructions here: https://firebase.google.com/docs/database/server/start

CouchDB with Android application

We have a web application developed iin GWT using couchDb as database, now we want to develop android application for the same web application. So we want to use same coucDB database for the android application also, in order to keep the one database for both applications (web & android).
So how to configure android application with couchDB.
Thank You
If your app does not need to work offline, you can just use your favorite HTTP client library, or a CouchDB-specific Java library to access your database over the network.
If you want to have your app maintain its own copy of your database (for offline and/or peer-to-peer usage), check out Couchbase Lite for Android — it can replicate with Apache CouchDB (which it sounds like you're using) or with Couchbase Sync Gateway (which has a few extra permissions management features).
You can also do similar from JS, if you're making a PhoneGap/Cordova app instead of native Java, by using the PouchDB library instead of the native Couchbase Lite library.

Sharing database between android and windows phone

I have application developed by different apk/api, I have version java Desktop application and Android Application and Windows phone 8.1 Application , My problem that the three version use the same database to access it can modify and insert ..etc
how i create shared database between them to use the same database via internet because i enforce my user to access the internet to use the application. There is any way to do that ?
Sure! Host a WebService for sharing data amongst devices. Using a simple php script to insert and select will allow you to achieve this.
Something like this blog would help develop understanding of web services if you want a place to start.
You can create a an online database without having to implement your own backend using this website Parse and implement platform specific code to read/write data for different platforms using their SDKs.

importing contacts from gmail,yahoo,msn etc from other services using java/j2ee

I am developing a java/j2ee based web app where I am provide a feature to my web app users, where they will be able to get contacts from the different email providers like yahoo gmail and msn and many other services. Since I am building it on java, I found a open source library which is struts 1.2 based application here is the link http://code.google.com/p/socialauth/
here I have to mention that I am using Amazon web services simple emailing service to send out emails using there java api's.
I am novice or I dont knw much about the struts, I am trying to figure out how this struts1.2 based app can be integrated with my servlets or aws, sms java api.
Help me out in this regard
The best API is Smack API. Click Here

Categories