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 6 years ago.
Improve this question
I am working on a Java application and I have a requirement to connect my application to an Elasticsearch Server.
I am new to both Java and Elasticsearch, and am unsure how to proceed. I couldn't find any documentation that made sense.
Can anybody please guide me. Thanks in advance.
Elasticsearch is itself written in Java, and has a Java Native Client.
It also has a REST API that allows any language to interact with it (which is more commonly used, and how I connect to it from Java and Python). You will need to use something like the Apache HTTP Components to make the REST calls.
There is another project, Jest, that adds a more Java OO layer on top of the REST calls.
Related
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 4 years ago.
Improve this question
I am new to android and I have covered the basics in java for backend and xml for frontend. What I would like to know is: is it possible to develop an android application completely using react and node? Also, how would it be implemented? If there are some tutorials available for this that anyone could recommend, that would be helpful. I want to know if android backend can be built in any language other than java, c/cpp.
If you read https://facebook.github.io/react-native/ you will know a bit more of how it works, but to build a native app, you need to use a framework that generates native code, or write in a language that the device can compile, like the ones you sad before. React Native generates native code.
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 5 years ago.
Improve this question
I want to develop a Web application in which front end will be developed in HTML, C#, ASP.net and server side will be using JAVA ( JAX-RS jersey ).
So, the front end will be running on IIS server and java will be running on Tomcat server.
How to consume Java REST API from C#?
I mean is there any way to to communicate between two different servers ?
Note: This is my second time asking question on this platform, so I am sorry if my question doesn't make any sense.
Perhaps you can look into using the Spring framework. With the Spring framework, you can build a RESTful web service that has end-points with which your front-end can communicate. It works like the C# Web-Api, in that you can define a "base URL" and other specific URLs that you can link to a function in your Java code.
Spring website:
https://spring.io/
Some help to getting started:
http://www.journaldev.com/2552/spring-rest-example-tutorial-spring-restful-web-services
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'm a Java developer that hasn't coded in about 5 years and wants to polish up my skills. I am going to create a small app that uses an OAuth 2.0 authentication flow and then makes a few REST calls and displays the results. I've got my credentials setup with the OAuth provider.
I used Eclipse back in the day, is that still a solid IDE for this type of project? If I want to share the app with others to show my work, where could I host the code?
Thanks for these and any other pointers.
first off - yes, Eclipse if still a good choice.
if you can, make you app a web-application, and then you can host it in PaaS such as Google AppEngine. then the app itself will be always accessible from any machine that is connected to the web. this way, you will be able to show it to anyone you want.
if you only want to show the code, then GitHub or Google Code are a good choices.
HTH
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 new to the restful web services. So my knowledge is minimal about the topic. I am developing a restful service in Java & I want to call an Amazon web service API from inside the service. Is this possible? How many ways can I do this?
There's no difference to any other java program. Just call the URL using a HTTP Client. A popular one ist the HttpClient from Apache HttpComponent.
Take a look at Jersey framework. If I understand you correctly, you should find this section of the documentation useful.
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 usually write my web services using PHP + Mysql, in a simplified way: reading the POST/GET params, connecting to the MySQL database and finally printing a JSON.
I'd like to check how to do this with a Java server, I've never programmed Java web servers and I'd like to know what should I study to learn to do it
Thanks
I'm supposing here that you have a good understand of java programming.
Fisrtly, I think you should understand java for web.
I recommend this book:
Head First Servlets and JSP
http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596516681/
Then you can learn web services with java:
Java Web Services: Up and Running
http://www.amazon.com/Java-Web-Services-Up-Running/dp/1449365116
Of course, there are many tutorials over the internet as well, but books give you a lot of background information.
I wanna suggest you garner understanding of the two main WebServices Architectures then decide which ones suit your case/use best
REST (GET,PUT,POST,DELETE,PATCH) JAX-RS
http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
vs SOAP bases JAX-WS
http://docs.oracle.com/javaee/5/tutorial/doc/bnayn.html
Comparing them:
Main differences between SOAP and RESTful web services in java