Package xsul.ws_addressing

Examples of xsul.ws_addressing.WsaEndpointReference


    /**
     *
     */
    public void test() {
        WsaEndpointReference brokerEPR = WseClientAPI.createEndpointReference(
                this.configuration.getBrokerURL().toString(),
                this.configuration.getTopic());

        ConstructorProps props = ConstructorProps.newProps();
        props.set(ConstructorConsts.BROKER_EPR, XMLUtil
View Full Code Here


    public void setEventSink(URI brokerURL, String topic) {
        if (brokerURL != null) {
            if (topic == null || topic.length() == 0) {
                topic = XBayaConstants.DEFAULT_TOPIC;
            }
            WsaEndpointReference eventSink = WseClientAPI
                    .createEndpointReference(brokerURL.toString(), topic);
            this.leadContextHeader.setEventSink(eventSink);
        }
    }
View Full Code Here

    leadContextHeader.setWorkflowTemplateId(workflow.getGPELTemplateID());
    leadContextHeader.setWorkflowInstanceId(new URI(client.getInstanceID()));
    leadContextHeader.setUserDn(proxy.getName().toString());
    leadContextHeader.setMyleadAgentUrl(new URI(
        XBayaConstants.DEFAULT_MYLEAD_AGENT_URL.toString() + "?wsdl"));
    WsaEndpointReference eventSink = WseClientAPI.createEndpointReference(
        XBayaConstants.DEFAULT_BROKER_URL.toString(), topic);
    leadContextHeader.setEventSink(eventSink);
    leadContextHeader.setExperimentId("urn:uuid:"+topic);
    this.header =  leadContextHeader;
  }
View Full Code Here

        if (this.subscriptionID != null) {
            throw new IllegalStateException();
        }
        try {
            if (this.pullMode) {
                WsaEndpointReference messageBoxEPR = this.wseClient
                        .createPullMsgBox(this.messageBoxURL.toString());
                URI address = messageBoxEPR.getAddress();
                this.subscriptionID = this.wseClient.subscribe(this.brokerURL
                        .toString(), address.toString(), this.topic);
                this.messagePuller = this.wseClient
                        .startPullingEventsFromMsgBox(messageBoxEPR, this,
                                1000L);
View Full Code Here

        if (this.subscriptionID != null) {
            throw new IllegalStateException();
        }
        try {
            if (this.pullMode) {
                WsaEndpointReference messageBoxEPR = this.wseClient
                        .createPullMsgBox(this.messageBoxURL.toString());
                URI address = messageBoxEPR.getAddress();
                this.subscriptionID = this.wseClient.subscribe(this.brokerURL
                        .toString(), address.toString(), this.topic);
                this.messagePuller = this.wseClient
                        .startPullingEventsFromMsgBox(messageBoxEPR, this,
                                1000L);
View Full Code Here

            .create("tag:gpel.leadproject.org,2006:6B9/GFacTestWorkflow1/instance1");

    /**
     */
    public void test() {
        WsaEndpointReference brokerEPR = WseClientAPI.createEndpointReference(
                this.configuration.getBrokerURL().toString(),
                this.configuration.getTopic());

        ConstructorProps props = ConstructorProps.newProps();
        props.set(ConstructorConsts.BROKER_EPR, brokerEPR);
View Full Code Here

    leadContextHeader.setWorkflowInstanceId(new URI(instance
        .getInstanceId().toString()));
    leadContextHeader.setUserDn(proxy.getName().toString());
    leadContextHeader
        .setMyleadAgentUrl(new URI(XBayaConstants.DEFAULT_MYLEAD_AGENT_URL.toString()+"?wsdl"));
    WsaEndpointReference eventSink = WseClientAPI
        .createEndpointReference(XBayaConstants.DEFAULT_BROKER_URL
            .toString(), topic);
    leadContextHeader.setEventSink(eventSink);
    return leadContextHeader;
  }
View Full Code Here

    }
   
        LeadContextHeader lh = new LeadContextHeader(workflow.getExperimentID(), workflow.getUserID());

        URI sinkLocation = URI.create(notifBrokerUrl + "topic/" + workflow.getNotificatonTopic());
        WsaEndpointReference eventSinkReference = new WsaEndpointReference(sinkLocation);
        lh.setEventSink(eventSinkReference);

        lh.setGfacUrl(URI.create(gfacFactoryUrl));
        lh.setMyleadAgentUrl(URI.create(myleadAgentUrl));
View Full Code Here

            if (topic == null || topic.length() == 0) {
                topic = XBayaConstants.DEFAULT_TOPIC;
            }
            // TODO remove the xsul dependency here to WsaEndpointReference object
            EndpointReference eventSink = WseMsgBrokerClient.createEndpointReference(brokerURL.toString(), topic);
            WsaEndpointReference eprReference = new WsaEndpointReference(URI.create(eventSink.getAddress()));
            this.leadContextHeader.setEventSink(eprReference);
        }
    }
View Full Code Here

        this.msgBoxServiceLoc = msgBoxServiceLoc;
        msgBoxClient = new MsgBoxClient();
        try {
            msgBoxAddr = msgBoxClient.createMessageBox(msgBoxServiceLoc,5000L);
            try {
                setReplyTo(new WsaEndpointReference(new URI(msgBoxAddr.getAddress())));
            } catch (URISyntaxException e) {
                e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
            }
            messageBoxDonwloader = new Thread(this, Thread.currentThread().getName()+"-async-msgbox-correlator");
            messageBoxDonwloader.setDaemon(true);
View Full Code Here

TOP

Related Classes of xsul.ws_addressing.WsaEndpointReference

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.