Changeset 235
- Timestamp:
- 12/14/06 16:19:30 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/message-handling-refactor-branch/src/hefeweizen_big_ania.rb
r234 r235 1101 1101 if ebMS_info['info']['mc-syncReplyMode'] == 'none' then 1102 1102 @logger.debug "The CPA indicates that the response ebXML message must be sent asynchronously. So closing connection first (if there is a connection)." 1103 close_open_connection instruction_pipe, transaction1103 close_open_connection command_hash, instruction_pipe, transaction 1104 1104 @logger.debug "The response ebXML message must be sent asynchronously ... so starting the delivery process for this new ebXML message." 1105 1105 1106 1106 # CREATING A NEW TRANSACTION FOR NEW ASYNC EBXML MESSAGE 1107 1107 # ------------------------------------------------------ 1108 1109 1108 1110 1109 new_transaction = @transaction_manager.get_new_transaction b2b_system.system_name … … 1156 1155 elsif ebMS_info['info']['mc-syncReplyMode'] == 'signalsOnly' 1157 1156 @logger.warn "signalsAndResponse as syncReplyMode not implemented." 1158 close_open_connection instruction_pipe, transaction1157 close_open_connection command_hash, instruction_pipe, transaction 1159 1158 # ???? 1160 1159 return false … … 1162 1161 elsif ebMS_info['info']['mc-syncReplyMode'] == 'signalsAndResponse' 1163 1162 @logger.warn "signalsAndResponse as syncReplyMode not implemented." 1164 close_open_connection instruction_pipe, transaction1163 close_open_connection command_hash, instruction_pipe, transaction 1165 1164 # ???? 1166 1165 return false … … 1168 1167 elsif ebMS_info['info']['mc-syncReplyMode'] == 'responseOnly' 1169 1168 @logger.warn "signalsAndResponse as syncReplyMode not implemented." 1170 close_open_connection instruction_pipe, transaction1169 close_open_connection command_hash, instruction_pipe, transaction 1171 1170 # ???? 1172 1171 return false … … 1174 1173 else 1175 1174 @logger.debug "Unknown syncReplyMode '#{ebMS_info['info']['mc-syncReplyMode']}'. Not returning new responses." 1176 close_open_connection instruction_pipe, transaction1175 close_open_connection command_hash, instruction_pipe, transaction 1177 1176 # ???? 1178 1177 return false … … 1191 1190 else 1192 1191 @logger.debug "There are no responses to be delivered. Closing any open connection" 1193 close_open_connection instruction_pipe, transaction1192 close_open_connection command_hash, instruction_pipe, transaction 1194 1193 1195 1194 end # if new_delivery == true … … 1214 1213 end 1215 1214 1216 def close_open_connection instruction_pipe, transaction 1215 def close_open_connection command_hash, instruction_pipe, transaction 1216 if command_hash['transport_protocol'].upcase == 'HTTP' then 1217 if command_hash["transport_request_or_response"] = "response" then 1218 @logger.debug "There is nothing to be closed because we are already on the HTTP response leg." 1219 return true 1220 end 1221 end 1222 1217 1223 command_to_http_server = { 1218 1224 "from" => "big_ania",
