Answer the question
In order to leave comments, you need to log in
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
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.
Check out the Spring MVC
Spring web services tutorials.
Just building a web service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question