|
From: <kc...@us...> - 2003-05-27 06:51:12
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv27553
Modified Files:
MessageProcessor.java
Log Message:
now throw MessageServiceHandlerException when cannot resolve the outgoing URL to send
Index: MessageProcessor.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/MessageProcessor.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** MessageProcessor.java 16 May 2003 08:41:03 -0000 1.47
--- MessageProcessor.java 27 May 2003 06:51:09 -0000 1.48
***************
*** 168,172 ****
MessageProcessor(EbxmlMessage ebxmlMessage,
MessageServiceHandlerConfig mshConfig,
! MessageServiceHandler msh) {
this(ebxmlMessage, mshConfig, msh, 0, 0);
}
--- 168,173 ----
MessageProcessor(EbxmlMessage ebxmlMessage,
MessageServiceHandlerConfig mshConfig,
! MessageServiceHandler msh)
! throws MessageServiceHandlerException {
this(ebxmlMessage, mshConfig, msh, 0, 0);
}
***************
*** 174,178 ****
MessageProcessor(EbxmlMessage ebxmlMessage,
MessageServiceHandlerConfig mshConfig,
! MessageServiceHandler msh, int startTry, long latency) {
logger.debug("=> MessageProcessor.MessageProcessor");
--- 175,180 ----
MessageProcessor(EbxmlMessage ebxmlMessage,
MessageServiceHandlerConfig mshConfig,
! MessageServiceHandler msh, int startTry, long latency)
! throws MessageServiceHandlerException {
logger.debug("=> MessageProcessor.MessageProcessor");
***************
*** 212,215 ****
--- 214,225 ----
retries = mshConfig.getRetries();
retryInterval = Long.parseLong(mshConfig.getRetryInterval());
+
+ if (toMshUrl == null) {
+ String err = ErrorMessages.getMessage(
+ ErrorMessages.ERR_HERMES_UNKNOWN_DESTINATION,
+ "Cannot resolve outgoing URL to send");
+ logger.warn(err);
+ throw new MessageServiceHandlerException(err);
+ }
logger.debug("<= MessageProcessor.MessageProcessor");
|