• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference b/w JMS and database

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When is it appropriate to use JMS over database and vice-versa.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMS is a middleware messaging technology that allows messages to be sent around a network. For example, you might want to send information to interested parties as text, XML, binary content and so on. It's a way of distributing information around the enterprise.
Databases however are a persistent storage mechanism for information. For example, you might want to store information about your customers away.
So in essence, JMS is for distributing information and databases are for storing information.
Hope that helps...
Simon
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Database is repository of data(mostly residing way deep in the server).
JMS is used across everywhere(on client side, on server side etc). JMS is used to tap a great possibility of publish and subscribe of messages etc.
JMS events can be triggered by different criteria. (like new entry in database, change in program parameter etc).
If you still want to compare JMS and database it is like comparing a car and your medicine cabinet(comparing two unrelated issues).
Kishore.
[ April 25, 2002: Message edited by: Kishore Dandu ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!