Examples of EPR


Examples of org.jboss.soa.esb.addressing.EPR

      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof JDBCEpr, true);
     
      assertEquals(((JDBCEpr) theEpr).getSQL(), "SOME FAKE SQL");
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof FileEpr, true);
     
      assertEquals(((FileEpr) theEpr).getErrorDelete(), true);
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof SFTPEpr, true);
     
      assertEquals(((SFTPEpr)theEpr).getCertificateURI().toString(), "http://www.bar.foo");
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

    return configTree;
  }
 
  private static FTPEpr createFTPEpr() throws MalformedURLException, URISyntaxException
  {
    FTPEpr epr = new FTPEpr ( new EPR() );
    epr.setURI( ftpServer.getURL().toURI() );
    epr.setUserName( ftpServer.getUserName() );
    epr.setErrorDirectory( ftpServer.getErrorDirName() );
    epr.setInputSuffix( INPUT_SUFFIX );
    epr.setPassword( ftpServer.getPassword() );
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

    @BeforeClass
    public static void setup() throws Exception
    {
        MockCourierFactory.install();
        MockRegistry.install();
        epr1 = new EPR(new URI("test1"));
        courier1 = new MockCourier(true);
        MockRegistry.register(MOCK_CATEGORY, MOCK_SERVICE, epr1, courier1);
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

        JBpmObjectMapper mapper = new JBpmObjectMapper();
        Message message = mapper.mapFromJBpmToEsbMessage(bpmToEsbVars, Boolean.FALSE, executionContext);
       
        //Setting up return mapping for the callback service.
        EsbActionHandler esbActionHandler = new EsbActionHandler();
        EPR epr = esbActionHandler.createReplyTo(esbToBpmVars.asXML(), Boolean.FALSE, executionContext);
        String esbToBpmXml = epr.getAddr().getExtensionValue(Constants.ESB_TO_BPM_VARS_TAG);
       
        //Obtaining the VariableMap that is going to be set callback command
        Map<String,Object> variableMap = mapper.mapFromEsbMessageToJBpmMap(message, esbToBpmVars.asXML());
        logger.info(variableMap);
        //Let's make sure that what we put in is going to make it roundtrip.
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

        //Set the replyTo to the JBpmCallback Service
        String esbToBpmVarsXml=null;
        if (esbToBpmVars!=null) {
            esbToBpmVarsXml = esbToBpmVars.asXML();
        }
        EPR replyTo = createReplyTo(esbToBpmVarsXml, globalProcessScope, executionContext);
        message.getHeader().getCall().setReplyTo(replyTo);
        if (exceptionTransition!=null) {
//          Set the replyTo to the JBpmCallback Service
            EPR faultTo = createFaultTo(esbToBpmVarsXml, globalProcessScope, executionContext);
            message.getHeader().getCall().setFaultTo(faultTo);
        }
       
        final ContextInstance contextInstance = executionContext.getContextInstance() ;
       
        if (isReplyToOrFaultToSet(contextInstance))
        {
            setRelatesToMessageId(contextInstance, message);
        }
       
        //Sending the message on its way
        if (logger.isDebugEnabled()) logger.debug("Created ESB message=" + message);
       
        if (replyToOriginator != null) {
            final EPR epr ;
            final Object replyToEPR = contextInstance.getVariable(Constants.REPLY_TO);
            final Object faultToEPR = contextInstance.getVariable(Constants.FAULT_TO);

            if (Constants.EPR_FAULT.equals(replyToOriginator) && (faultToEPR != null)) {
                epr = EPRHelper.fromXMLString(faultToEPR.toString()) ;
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

     * @param executionContext of the currently invoked EsbActionHandler.
     * @return the replyTo EPR of the JBpmCallbackService.
     */
    protected EPR createReplyTo(String esbToJBpmXml, Boolean globalProcessScope, ExecutionContext executionContext)
    {
        EPR replyTo = new LogicalEPR(ServiceInvoker.INTERNAL_SERVICE_CATEGORY, JBpmCallback.JBPM_CALL_BACK_SERVICE_NAME);
        PortReference portReference = replyTo.getAddr();
        if (globalProcessScope!=null) {
            portReference.addExtension(Constants.PROCESS_SCOPE_ATTR, globalProcessScope.toString());
        }
        final Token token = executionContext.getToken() ;
        final long tokenId = token.getId();
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

     * @param executionContext of the currently invoked EsbActionHandler.
     * @return the faultTo EPR of the JBpmCallbackService.
     */
    protected EPR createFaultTo(String esbToJBpmXml, Boolean globalProcessScope, ExecutionContext executionContext)
    {
        EPR faultTo = createReplyTo(esbToJBpmXml, globalProcessScope, executionContext);
        if (!exceptionTransition.equals("condition")) {
            PortReference portReference = faultTo.getAddr();
            portReference.addExtension(Constants.TRANSITION_NAME, exceptionTransition);
        }
        return faultTo;
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

            setRelatesToMessageId(contextInstance, message);
        }
       
        if (logger.isDebugEnabled()) logger.debug("Created ESB message=" + message);
        if (replyToOriginator != null) {
            final EPR epr ;
            final Object replyToEPR = contextInstance.getVariable(Constants.REPLY_TO);
            final Object faultToEPR = contextInstance.getVariable(Constants.FAULT_TO);

            if (Constants.EPR_FAULT.equals(replyToOriginator) && (faultToEPR != null)) {
                epr = EPRHelper.fromXMLString(faultToEPR.toString()) ;
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.