How to connect backend to frontend 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 1 year ago.
Improve this question
I'm trying to connect a backend program that I wrote in java to frontend design that I made with "FIGMA". I pretty new in that, I was trying to read some information about it but didn't successes.
how could I make this connection. its kind of a form application that i want to link it to HTML design

There are several ways to connect backend and frontend, one way is to use REST protocol.
Your Backend can expose REST service (some library you can use are Spring MVC, Jersey, CXF, etc) then your Frontend can call the REST service.

Related

How to add a interceptor to a WebSocket [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 using a library on my Spring Boot application and this library is exposing a WebSocket endpoint for the clients to communicate. In my use case, I want to enrich the data this library is sending on the WebSocket. I'm thinking of adding a WebSocket interceptor to capture the data and manipulate it, but I am not sure whether it's possible to add an interceptor to a WebSocket endpoint that is exposed by a third party library.

How to communicate Front End( in C#, HTML, JQuery) with Backend( JAX-RS( Jersey) and JAVA)? [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 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

How to connect a Java application to Elasticsearch? [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 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.

How to create Restful facade service in java? [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 know to create Restful web service but I don't know how to implement restful facade in java.
I would appreciate if you share some links or examples of implementation.
Your question isn't that specific, so hard to provide a targeted suggestion, but I've been using spring mvc to create restful webservices in java with a fair amount of success. Spring have an examples project, which it claims "demonstrates the capabilities of the Spring MVC web framework through small, simple examples":
https://github.com/spring-projects/spring-mvc-showcase

How to make an API call from a RESTful service in Java? [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 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.

Categories