File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes one or more jms queue?    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "one or more jms queue?    " Watch "one or more jms queue?    " New topic

one or more jms queue?

giuseppe morreale

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=" " rel="nofollow"></a>
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33111

How about having a common interface for logging so all the types can use the same queue and same interface?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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.
I agree. Here's the link:
subject: one or more jms queue?
It's not a secret anymore!