Answer the question
In order to leave comments, you need to log in
Can JMS be used with TomCat?
I want to implement communication between users on servlets, I would also like that, for example, the site admin could send a message to all registered users.
1 How is it implemented? using JMS or is there some other way?
2 climbing the Internet, as I understand the TomCat server is not suitable for JMS, is it possible to somehow use JMS + TomCat? Examples are welcome.
Answer the question
In order to leave comments, you need to log in
The idea to make "communication between users" on servlets and JMS, in itself, does not say anything. Servlets and JMS are not a way to do this, but just parts of JEE that (along with others) can be used for this ... or you can not use JEE at all, and do the same on any other stack (Spring, NodeJS, PHP , ASP... whatever! ), or make it based on other parts of JEE. As it is better and more correctly - depends only on the task.
But if suddenly the task is to dig with JEE, then in a nutshell: the Tomcat server is one, specific implementation of the web container (servlets). This is only part of JEE. JMS is the other part, and there are many other parts out there, and they are all interoperable, of course, and their implementations can be screwed together with more or less effort. Of course, you can attach JMS to Tomcat, or you can take a "bigger" server that already contains all the necessary parts of JEE, for example, Wildfly (former JBoss). It will have both, and much more, perhaps even very necessary for this task: web sockets, DI, persistence, possibly JSF, and authentication ...
In short, there are a lot of options for how this can be done, but before you dive into it and look for some specific examples, don’t understand what, I recommend digging more carefully on the Internet and figuring out what is what in JEE , decide which of this and why specifically needed for a specific task ... and is it necessary at all - so that it does not work out of a cannon on sparrows.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question