Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

one or more jms queue?

 
giuseppe morreale
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One or more queue?
I'm design a system in which I call some external webservices.
I wish to log any webservice response in my database for logging purpose.
So in order to don't slow down the system with logging work (INSERT QUERY etc.), I take decision about using a message driven bean in order to log the response writing it in database.

So, I call webservice, then the response DTO is send to queue, then in asynchronous mode the mdb write it on db.

I use approximately 7-8 webservice, each one with different response object.

The question is..I have to make one queue for response type, or a single queue that manage all the response type?!

I wish to obtain in reply some opinion or design pattern about this.
thanks in advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about having a common interface for logging so all the types can use the same queue and same interface?
 
Rosco Duncan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you will probably use a single queue here, but without any other work, you will find that you will need to write custom code for each of the types of response objects when you want to convert each into a JMS Message to post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic