0
I need to do a simple Publisher/Subscriber in JMS, but I’m full of doubts about how it works since I don’t have much idea of the architecture nor the implementation in Java.
From what I understand the operation can be done as follows:
- I configure the Jboss server to start JMS. (I don’t need any application here).
- I create a Publisher client and a Subscriber client that connect to this Jboss server... I saw an implementation reference for Publisher/Subscriber clients here: https://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/JMS_Examples-A_Pub_Sub_Example.html and in this case both can be java SE applications, even desktop, correct?
Well, my question is this::
- What I’m thinking is right?
- How do I set up JMS in wildfly (new Jboss)? only in the standalone.xml file? what would it look like?
JMS 2.0 (jsr 914 and 343) is a specification of Java EE 7 that supports both queues and topics. In this case the default implementation is Hornetq, Jboss’s own project. Yes, it is possible to create remote producers (I do not have full knowledge to state otherwise), but not necessarily Desktop. A good initial reference would be the Java EE tutorial (http://docs.oracle.com/javaee/7/tutorial/partmessaging.htm#GFIRP3). The configuration in wildfly is done both on standalone and by code, a good reference are: https://docs.jboss.org/author/display/WFLY8/Messaging+configuration.
– Wakim
Ah, remembering that only Wildfly Full Profile allows the use of JMS.
– Wakim