Doubt with JMS in Java and implementation

Asked

Viewed 245 times

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:

  1. I configure the Jboss server to start JMS. (I don’t need any application here).
  2. 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::

  1. What I’m thinking is right?
  2. 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.

  • Ah, remembering that only Wildfly Full Profile allows the use of JMS.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.