P
P
pomaz_andrew2017-04-03 10:48:14
JavaScript
pomaz_andrew, 2017-04-03 10:48:14

How to connect to Java application from Angular-app?

Hello! There is a need to use the methods
of the Java application classes from the Angular application. The node-java package,
as the most well-known solution, could not be configured on the machine, so we had to look for alternative ways to access the functionality of the Java application. A review of the node.js packages
(probable candidates) turned up nothing, they are all aimed at running the
main function in the java class, and I need free access to java classes
and their methods to call.
Who faced a similar problem and what did you use to solve it?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2017-04-03
@AppFA

Angular.js is clientside, Java is serverside, you cannot access methods on the server directly from the client. Use the REST interface and you will be happy.

M
Maks Burkov, 2017-04-04
@Maks00088

Check out the Spring MVC
Spring web services tutorials.
Just building a web service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question