0

I am implementing java web application using JSP/Servlet. I have another standalone application on another machine.

When users of web application do something, I want to control / communicate with standalone application accordingly.

What are best ways to control / communicate with standalone application from web application deployed in tomcat?

One more thing, I do not want to use database things. Using database I want to avoid polling database from standalone application.

Thanks

2 Answers 2

3

You should consider to use webservices to do the communication between two applications.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for answer. Can I implement web service inside web application in Tomcat?
absolutely, if you are using java it is not very difficult and exist so much examples in the web.
1

I think:
1) sharing the same DB
2) the desktop app polling (calling periodically
some web service) to get the web app's state

Theoretically you cannot access that easily a desktop app from a web app
(just because this desktop app may be sitting behind all kinds of firewalls and such).
The architectural choice here depends on many factors
like e.g. if both apps are in the same intranet or not.
If so 1) may be an option. Otherwise you could use 2).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.