Package org.apache.ode.bpel.iapi

Examples of org.apache.ode.bpel.iapi.EndpointReference


        final Document doc = DOMUtils.newDocument();
        Element serviceref = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(),
                                                 EndpointReference.SERVICE_REF_QNAME.getLocalPart());
        doc.appendChild(serviceref);
       
        return new EndpointReference() {
            public Document toXML() {
                return doc;
            }
        };
    }
View Full Code Here


     * Handle callback endpoints for the case where partner contact process
     * my-role which results in an "updated" my-role EPR due to session id
     * injection.
     */
    private void writeHeader(MessageContext msgContext, MyRoleMessageExchange odeMex) {
        EndpointReference targetEPR = odeMex.getEndpointReference();
        if (targetEPR == null)
            return;

        // The callback endpoint is going to be the same as the target
        // endpoint in this case, except that it is updated with session
View Full Code Here

    private static final long serialVersionUID = 1L;
    private static final Log __log = LogFactory.getLog(SessionOutHandler.class);


    public InvocationResponse invoke(MessageContext messageContext) throws AxisFault {
        EndpointReference otargetSession = (EndpointReference) messageContext.getProperty("targetSessionEndpoint");
        EndpointReference ocallbackSession = (EndpointReference) messageContext.getProperty("callbackSessionEndpoint");
        if (otargetSession == null)
            otargetSession = (EndpointReference) messageContext.getOptions().getProperty("targetSessionEndpoint");
        if (ocallbackSession == null)
            ocallbackSession = (EndpointReference) messageContext.getOptions().getProperty("callbackSessionEndpoint");
View Full Code Here

        final Document doc = DOMUtils.newDocument();
        Element serviceref = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(),
                                                 EndpointReference.SERVICE_REF_QNAME.getLocalPart());
        doc.appendChild(serviceref);
       
        return new EndpointReference() {
            public Document toXML() {
                return doc;
            }
        };
    }
View Full Code Here

        final Document doc = DOMUtils.newDocument();
        Element serviceref = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(),
                                                 EndpointReference.SERVICE_REF_QNAME.getLocalPart());
        doc.appendChild(serviceref);
       
        return new EndpointReference() {
            public Document toXML() {
                return doc;
            }
        };
    }
View Full Code Here

        ProcessModel pmodel = _server.getProcessModel(pconf.getProcessId());
        if (custom.includeEndpoints() && pmodel != null) {
            for (PartnerLinkModel oplink : pmodel.getAllPartnerLinks()) {
                if (oplink.hasPartnerRole() && oplink.isInitializePartnerRoleSet()) {
                    // TODO: this is very uncool.
                    EndpointReference pepr = _server.getBpelProcess(pconf.getProcessId()).getInitialPartnerRoleEPR(oplink);
                    if (pepr != null) {
                        TEndpointReferences.EndpointRef epr = eprs.addNewEndpointRef();
                        Document eprNodeDoc = epr.getDomNode().getOwnerDocument();
                        epr.getDomNode().appendChild(eprNodeDoc.importNode(pepr.toXML().getDocumentElement(), true));
                    }
                }
            }
        }
View Full Code Here

    PartnerRoleMessageExchangeImpl createPartnerRoleMex(MessageExchangeDAO mexdao) {
        InvocationStyle istyle = mexdao.getInvocationStyle();
        PartnerRoleMessageExchangeImpl mex;
        Operation op = _plinkDef.getPartnerRoleOperation(mexdao.getOperation());
        EndpointReference myroleEPR = _plinkDef.hasMyRole() ? _process.getInitialMyRoleEPR(_plinkDef) : null;
        switch (istyle) {
        case UNRELIABLE:
            mex = new UnreliablePartnerRoleMessageExchangeImpl(_process, mexdao.getInstance().getInstanceId(), mexdao
                    .getMessageExchangeId(), _plinkDef, op, /* EPR todo */
            null, myroleEPR, _channel);
View Full Code Here

     * @param mexDao
     */
    void invokeIL(MessageExchangeDAO mexDao) {

        Element partnerEprXml = mexDao.getEPR();
        EndpointReference partnerEpr = _initialEPR;
        if (partnerEprXml != null) {
            if (_contexts.eprContext != null)
                partnerEpr = _contexts.eprContext.resolveEndpointReference(partnerEprXml);
            else
                __log.debug("Partner EPR will not be resolved, no EPR context specified!" );
        }

        EndpointReference myRoleEpr = null;
        if (_plinkDef.hasMyRole()) myRoleEpr = _process.getInitialMyRoleEPR(_plinkDef);
        _process.setStatefulEPRs(mexDao);
        Operation operation = _plinkDef.getPartnerRoleOperation(mexDao.getOperation());
        Set<InvocationStyle> supportedStyles = _contexts.mexContext.getSupportedInvocationStyle(_channel, partnerEpr);

View Full Code Here

        __log.debug("Activating " + _pid);
        // Activate all the my-role endpoints.
        for (Map.Entry<String, Endpoint> entry : _pconf.getProvideEndpoints().entrySet()) {
            Endpoint endpoint = entry.getValue();
            EndpointReference initialEPR = null;
            if (isShareable(endpoint)) {
                // Check if the EPR already exists for the given endpoint
                initialEPR = _sharedEps.getEndpointReference(endpoint);
                if (initialEPR == null) {
                    // Create an EPR by physically activating the endpoint
View Full Code Here

                    if (prole._initialPartner != null) {
                        PartnerRoleChannel channel = _contexts.bindingContext.createPartnerRoleChannel(_pid,
                                prole._plinkDef.getPartnerRolePortType(), prole._initialPartner);
                        prole._channel = channel;
                        _partnerChannels.put(prole._initialPartner, prole._channel);
                        EndpointReference epr = channel.getInitialEndpointReference();
                        if (epr != null) {
                            prole._initialEPR = epr;
                            _partnerEprs.put(prole._initialPartner, epr);
                        }
                        __log.debug("Activated " + _pid + " partnerrole " + prole.getPartnerLinkName() + ": EPR is "
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.iapi.EndpointReference

Copyright © 2018 www.massapicom. 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.