GFESB v2.x – Using NMProperties in BPEL 2.0 to force the HTTP BC to send the “connection: close” HTTP header

In the major writeup called “GlassFish ESB v2.2 Field Notes - Exercising Load Balanced, Highly Available, Horizontally Scalable HL7 v2 Processing Solutions”, at http://blogs.czapski.id.au/2010/01/glassfish-esb-v2-2-field-notes-exercising-load-balanced-highly-available-horizontally-scalable-hl7-v2-processing-solutions, in section called “WS Projects”, pages 35-36 , I discuss how NMProeprties in BPEL 2.0 can be used to force the HTTP BC to send the “connection: close” HTTP header, instead of the “connection: keep-alive” HTTP header, which it sends by default. Normally this does not matter but if a load balancer is to be used as a proxy, and a round robin load balancing is desired, the “connection: keep-alive” gets in the way. Rather then closing a connection after each HTTP request/response, as HTTP protocol was designed to do, “connection: keep-alive” HTTP header indicates to the server that connection is not to be closed in anticipation of another request coming form the same source “shortly”. Since the HTTP BC does not seem to have a place where this header can be removed or changed to “connection: close”, NMProperties in BPEL have to be used to force connection closure and enable correct load balancing behavior.
Comments:

HTTP BC is great. Actually, what I'am missing, and I was not able to find useful demonstrations, are some recommendations about Sockets - pure TCP/IP Sockets. In general, there are two options JCA, to add this functionality to your appserver directly and the TCP/IP BC... but I do not find any kind of documentation describing how to configure/setup the TCP/IP BC.

In my case, all I want to achieve is sending a text message (no xml)... and work with it (transformation/calculation).

Currently, I have developed a "Socket-Proxy", doing a transformation and using the HTTP-BC. But that is just a temp fix and not a solution.

Do you have some best practices for integrating TCP/IP Sockets into OpenESB?

Posted by mcahornsirup on February 14, 2010 at 03:32 PM EST #

Hello, mcahornsirup.

Alas, I never worked with the TCP/IP BC. The Wiki page, at http://wiki.open-esb.java.net/Wiki.jsp?page=TCPIPBC, is the closest one comes to documentation, that I am aware of. Perhaps there is more at the SeviceMix site, of Bostech site for the component. Please note that the TCP BC is in Incubator state at the OpenESB site so it may or may not be of use to you.

Regards

Michael

Posted by Michael Czapski on February 15, 2010 at 12:54 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