Java CAPS 5.1.3 - Using JMS RequestReply() in synchronous messaging

By default Java CAPS uses the Java Message Service infrastructure as its underlying messaging layer. Occasionally there is a requirement or a temptation to develop synchronous service, for example invoked as web services or as HTTP Request/Response services, that invoke some back-end component over JMS. In request/response scenarios the response must be delivered by the component which received the request, a JCD or a BP. If the request is passed to the nback-end infrastructure through a JMS Queue or Topic there arises an issue of getting the response back to the same instance of the JCD or a BP that sent the original request. The attached extract, JMS RequestReply, from an early draft of the "Java CAPS Basics - Implementing Common EAI Patterns", discusses and illustrates how the JMS RequestReply() method of the JMS OTD can be used to implement this kind of functionality.
Comments:

Hello Michael,

Good example of how to implement the JMS Request Reply mechanism. We have also used this in our current project, but we are now running into some issues. By using the requestReply method, a temporarly queue is being setup. according to the description this queue will only exists if as long as its creator exists, the java-collaboration instance. But in our situation now we are facing a problem that the number of temp.queues in the JMS IQ Manger is increasing. We discovered this behaviour when performing some load-tests.

Does this sounds familiar to you, and is there a solution?

thusfur we tried to change some configuration (number of connections to JMS etc.) and setting the queues non-persistent
JMSClient.setDeliveryMode( jmsRequest.NONPERSISTENT );
But did doesn't seems to help, resolving the problem with increasing number of queues on the IQ Manager.

Hope you can help?

Simon

Posted by Simon Borosma on April 24, 2008 at 05:20 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

In this Blog I post abstracts of articles / writeups / notes on various aspects of Java CAPS and SOA Suite including solutions, discussions and screencasts. The links to the referenced material are included in the bodies of the abstracts.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today