how to create application layer (server ) in java [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am building an android app and i have following doubts:-
I need help in how to create back end that is server (application layer).(I am good in java . so if you could guide me a way using java that would be nice)
I need know how to connect the server to my app both on app and on server side.

It depends on you're needs but you're best bet is using something like Django, Ruby on Rails or Python.
Building Awesome Rails API's Part 1

If you want to use Java, there are more ways. Here is one of them (pretty common these days). Your backend app could be a spring based and use REST controllers as the endpoints. There are plenty of introductions, e.g. http://spring.io/guides/gs/rest-service . Once you have established and run the backend app (either deployment to a web server or spring boot - see http://spring.io/guides/gs/spring-boot/) you can connect to the server via TCP/IP. Your android app could use http-client.

Related

How to connect to neo4j database from android app (with java code)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am developing one android application in java and i am using neo4j as a database for this app.
Lets, consider i will store the static cypher query in a string. Then after the user clicks on the button, i want to send this query(string) to neo4j server and then execute it on neo4j server and return the result.
My question is that, Is it possible? If yes, how can i do this ? Is there any easy/proper way to do?
Any help will be highly appreciated.
If you want to talk directly to Neo4j, you can use either:
The HTTP API
The Binary Bolt Protocol
If you would rather use middleware, there are many many different options:
Java
.NET
JavaScript
Python
Go
Ruby
PHP
...
When building mobile apps my personal preference is to build a standard API in a middleware server then use HTTPS calls from the app (neo4j-graphql-js has also been awesome for a couple projects), but there are enough stacks that you have the freedom to do it your way.

Parse Migration [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have photo sharing application running on Parse. So if I will migrate to Parse Server, should I change my Android Code or it's just backend thing? And what is the best and the easiest way to migrate from parse without building new system on my own physical server.
Thank you.
If you are migrating to parse server, you shouldn't need to change your Android code. You will need to update to the latest android sdk and initialize parse with your own serverURL however. The serverURL is wherever you decide to host your parse server.
Hosting parse server is straight forward. Check out the parse server example here. They have links to one click deployment to a bunch of different paas providers such as heroku. If you have a lot of cloud code the migration process can become more complicated and is probably out of scope for this question. Most of it is outlined in the docs however.

Java Technologies [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am designing an IT healthcare system for academic purposes. I would like to create a database in an ordinary Internet web-domain and a separate Java client-application.
Somehow I want the client to have access in the database through Internet. I am looking for the technology to implement that. I would really appreciate if you could share any ideas of how can I do that?
Giving direct access to the database over the public Internet is a discredited approach. Instead applications are designed as three-tiered, such that on the server side you have a dedicated application server which communicates with the database as needed.
There are many frameworks which make this task easier, such as Grails (lightweight), the Spring Framework (industrial-strength, quite heavyweight), or the Java EE platform (more heavyweight than Spring).
I would suggest developing locally.
Run your database on Vagrant or just a plain old VM and treat it like its an external database server.

How can I Make Single Application for web and desktop in JAVA [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I need to make a cross platform application than can run on MAC, Windows, Linux and also on web. Can JAVA be used for this? If yes then what type of JAVA project and what architecture should I use? And also need to implement MVC.
My Application will store data on local pc and will also have same interface on web. And both platforms will keep in sync!
Your choices are somewhat as follows.
Create a remote server
Create a Swing desktop client
Use the Swing client through Web Start or create a separate web
client on the remote server (with any frameworks of your choice).
Obviously the choice without a separate web client is simpler, but it also means that all "web" users must have Java installed and Web Start must be allowed.
Yes java is best fit for this....about project type first of all decide the frameworks you are going to use.

Java back-end and JavaScript front-end, how to join? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm new to creating a web application with a Java back-end and a JavaScript, HTML 5 front-end. How do I pass content between the two?
You are looking for a web framework. These will integrate all three technologies you mention into a server and fully functioning webapp. You will also need to be working with JavaEE.
I recommend Jetty or Play
Look up some tutorials on how to get started but basically these frameworks will create the server backend that launches on a port and can host different sockets etc... and since theyre in Java the backend code can literally be written anywhere in the project...front end is easy too, you'll see how it works once you work through your first tutorial with them :)
Java EE is what you need indeed.
on a back end you add end points, and on front end you hit those end points w/ ajax

Categories

Resources