| Author |
one or more jms queue?
|
giuseppe morreale
Greenhorn
Joined: Jan 20, 2009
Posts: 5
|
|
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
|
---
Article and example (english and italian) about
[Java EE, Hibernate, EJB, Servlet, JSP, WebService, Glassfish, Java ME etc]
<a href="http://programmaremobile.blogspot.com " rel="nofollow">http://programmaremobile.blogspot.com</a>
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26182
|
|
|
How about having a common interface for logging so all the types can use the same queue and same interface?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Rosco Duncan
Ranch Hand
Joined: Apr 23, 2007
Posts: 41
|
|
|
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.
|
 |
 |
|
|
subject: one or more jms queue?
|
|
|