Abhishek Chauhan
Abhishek Chauhan

Reputation: 309

how does jms interact with the underlying database?

I understand JMS as depicted by the following diagram:

JMS
(source: techhive.com)

Is there any way for me to access the underlying database using JMS or some other thing? Further, the JDBC connections that the JMS server maintains, can I add new connections in it so as to access other databases also and do CRUD operations on them? If yes, how?

Upvotes: 1

Views: 2241

Answers (1)

benjamin.donze
benjamin.donze

Reputation: 496

Where did you get this from?

Normally JMS is used to send messages to queue (or topics). You have message producers that push messages in the queue and message consumers consume them and process it. In your exemple it seems that you have multiple queues. One for the messages that need to be processed, and one for each client to retrieve the result the processing of its messages.

With JMS Server you don't necessarily have a database behind. Everything can stay in memory, or can be written to files. You will need database server behind only if you configure your JMS server to be persistent (and to assure that even if server/application crash your messages won't be lost). But in that case you will never have to interact with the database. Only the JMS server will and you will interact with the JMS server sending and consuming messages.

Upvotes: 1

Related Questions