Examples of ApplicationMsgProcessor


Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

                if (msgCtx.isServerSide()) {
                  String inboundSequence = (String) msgCtx.getProperty(Sandesha2Constants.MessageContextProperties.INBOUND_SEQUENCE_ID);
                  Long   msgNum = (Long) msgCtx.getProperty(Sandesha2Constants.MessageContextProperties.INBOUND_MESSAGE_NUMBER);
                 
                    if (inboundSequence != null && msgNum != null) {
                  msgProcessor = new ApplicationMsgProcessor(inboundSequence, msgNum.longValue());
                    }
                } else // if client side.
                    msgProcessor = new ApplicationMsgProcessor();
               
      } else {
        msgProcessor = MsgProcessorFactory.getMessageProcessor(rmMsgCtx);
      }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

      MessageContext requestMsgCtx = msgCtx.getOperationContext().getMessageContext(OperationContextFactory.MESSAGE_LABEL_IN_VALUE);
      if (requestMsgCtx!=null) {  //for the server side
        RMMsgContext reqRMMsgCtx = MsgInitializer.initializeMessage(requestMsgCtx);
        Sequence sequencePart = (Sequence) reqRMMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
        if (sequencePart!=null)
          msgProcessor = new ApplicationMsgProcessor ();// a rm intended message.
      } else if (!msgCtx.isServerSide()) //if client side.
          msgProcessor = new ApplicationMsgProcessor ();
    }else  {
      msgProcessor = MsgProcessorFactory.getMessageProcessor(rmMsgCtx);
    }
   
    if (msgProcessor!=null)
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

             
              //TODO correct the syntac into '[received msgs]'
             
              seqPropMgr.update(receivedMsgsBean);

              ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
              ackProcessor.sendAckIfNeeded(rmMsgContext,
                  receivedMsgStr);

            }
          }
        }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

          .getSequencePropretyBeanMgr();
      SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(
          sequenceId, Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);
      String receivedMsgStr = (String) receivedMsgsBean.getValue();

      ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
      //Even though the duplicate message is dropped, hv to send the ack if needed.
      ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr);

    }
  }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

                if (msgCtx.isServerSide()) {
                  String inboundSequence = (String) msgCtx.getProperty(Sandesha2Constants.MessageContextProperties.INBOUND_SEQUENCE_ID);
                  Long   msgNum = (Long) msgCtx.getProperty(Sandesha2Constants.MessageContextProperties.INBOUND_MESSAGE_NUMBER);
                 
                    if (inboundSequence != null && msgNum != null) {
                  msgProcessor = new ApplicationMsgProcessor(inboundSequence, msgNum.longValue());
                    }
                } else // if client side.
                    msgProcessor = new ApplicationMsgProcessor();
               
      } else {
        msgProcessor = MsgProcessorFactory.getMessageProcessor(rmMsgCtx);
      }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

                receivedMsgStr = Long.toString(msgNo);

              receivedMsgsBean.setValue(receivedMsgStr);
              seqPropMgr.update(receivedMsgsBean);

              ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
              ackProcessor.sendAckIfNeeded(rmMsgContext,
                  receivedMsgStr);

            }
          }
        }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

          .getSequencePropretyBeanMgr();
      SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(
          sequenceId, Sandesha2Constants.SequenceProperties.RECEIVED_MESSAGES);
      String receivedMsgStr = (String) receivedMsgsBean.getValue();

      ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
      //Even though the duplicate message is dropped, hv to send the ack
      // if needed.
      ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr);

    }
  }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

                if (msgCtx.isServerSide()) { // for the server side
                    RMMsgContext reqRMMsgCtx = MsgInitializer.initializeMessage(requestMsgCtx);
                    Sequence sequencePart = (Sequence) reqRMMsgCtx
                                    .getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
                    if (sequencePart != null)
                            msgProcessor = new ApplicationMsgProcessor();// a rm intended message
                } else // if client side.
                    msgProcessor = new ApplicationMsgProcessor();
               
      } else {
        msgProcessor = MsgProcessorFactory.getMessageProcessor(rmMsgCtx);
      }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

              // TODO correct the syntac into '[received msgs]'

              seqPropMgr.update(receivedMsgsBean);

              ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
              ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr, storageManager);
             
             
              drop = true;

            }
View Full Code Here

Examples of org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor

      SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropertyBeanMgr();
      SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(sequenceId,
          Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);
      String receivedMsgStr = receivedMsgsBean.getValue();

      ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
      // Even though the duplicate message is dropped, hv to send the ack
      // if needed.
      ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr, storageManager);

    }
    if (log.isDebugEnabled())
      log.debug("Exit: SandeshaGlobalInHandler::processDroppedMessage");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.