I have a task: investigate possibility not to install universal forwarder and use only java instead.
Can REST API (java sdk) allow to do it?
I have a task: investigate possibility not to install universal forwarder and use only
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not sure what you mean by “universal forwarder”, but REST isn’t really an “API”, its more of an architectural structure. For example, commonly it is used in conjunction with HTTP verbs like GET, PUT, DELETE, and POST to represent the common functions of lookup, inserting, deleting, and updating a record. REST is supposed to be “Stateless”, meaning you don’t store any state on the server-side at all.
I personally prefer the REST approach to my web apps, and typically use JSON as my preferred transport format. Spring MVC and Spring Roo can also be used to aid in building a RESTful web service.
If by “universal forwarder” you mean not using a servlet container, then the answer is “yes”, but why would you want too? You would would have to implement your own web server, basically, or some sort of socket management server, of your own. There are alternatives to using Tomcat, like Jetty, and most servlet containers can be imbedded and extended if you don’t want to run them externally. I wouldn’t recommend this approach, though, as its a lot of pain.