Package org.apache.muse.ws.addressing

Examples of org.apache.muse.ws.addressing.EndpointReference


    {
      String resourceId = request.getParameter("resourceId");
      ObjectName objectName = new ObjectName(resourceId);

      String wsresourceid = objectName.getKeyProperty(Names.OBJECT_ID);
      EndpointReference resourceEndpointReference = new EndpointReference(getURI(request));
     
      resourceEndpointReference.addParameter(
          Names.RESOURCE_ID_QNAME,
          wsresourceid);
     
      WsResourceClient resourceClient = new WsResourceClient(resourceEndpointReference);
      Element wsdl = ((Element[])resourceClient.invoke(proxyHandler,WSDL_DIALECT))[0];
View Full Code Here


   * @throws Exception when the example fails (not at application level).
   */
  void executeExample(String host, int port, String qpidHost, int qpidPort, String virtualHost, String username, String password, int initPoolCapacity, int maxPoolCapacity, long maxWaitTimeout) throws Exception
  {   
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
    WsResourceClient adapterClient = new WsResourceClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 2) Creates the Adapter service client...
    adapterClient.invoke(
View Full Code Here

      String resourceId = request.getParameter("resourceId");
      ObjectName objectName = new ObjectName(resourceId);
     
      String wsresourceid = objectName.getKeyProperty(Names.OBJECT_ID);
     
      EndpointReference resourceEndpointReference = new EndpointReference(getURI(request));
      resourceEndpointReference.addParameter(
          Names.RESOURCE_ID_QNAME,
          wsresourceid);
     
//      WsResourceClient resourceClient = new WsResourceClient(resourceEndpointReference);
//      Element wsdl = ((Element[])resourceClient.invoke(proxyHandler,WSDL_DIALECT))[0];
View Full Code Here

    {
      String resourceId = request.getParameter("resourceId");
      ObjectName objectName = new ObjectName(resourceId);

      String wsresourceid = objectName.getKeyProperty(Names.OBJECT_ID);
      EndpointReference resourceEndpointReference = new EndpointReference(getURI(request));
     
      resourceEndpointReference.addParameter(
          Names.RESOURCE_ID_QNAME,
          wsresourceid);
     
      WsResourceClient resourceClient = new WsResourceClient(resourceEndpointReference);
      Element rmd = ((Element[])resourceClient.invoke(proxyHandler,RMD_DIALECT))[0];
View Full Code Here

    {
      String resourceId = request.getParameter("resourceId");
      ObjectName objectName = new ObjectName(resourceId);
      String wsdmResourceId = objectName.getKeyProperty(Names.OBJECT_ID);
     
      EndpointReference resourceEndpointReference = new EndpointReference(getURI(request));
      resourceEndpointReference.addParameter(
          Names.RESOURCE_ID_QNAME,
          wsdmResourceId);
     
//      WsResourceClient resourceClient = new WsResourceClient(resourceEndpointReference);
//      Element wsdl = ((Element[])resourceClient.invoke(proxyHandler,WSDL_DIALECT))[0];
View Full Code Here

   
    // ...and this is QMan too! Note that it has an hidden consumer capability that is used in
    // order to run successfully this example...
    URI consumerURI = URI.create("http://"+host+":"+port+"/qman/services/consumer");
   
    EndpointReference producerEPR = new EndpointReference(producerURI);   
    EndpointReference consumerEPR = new EndpointReference(consumerURI);
 
    NotificationProducerClient producerClient = new NotificationProducerClient(producerEPR);
        producerClient.setTrace(true);

        // 1) Creates a subscription and gets the corresponding reference.
View Full Code Here

        "http://"+
        host+
        ":"+
        port+
        "/qman/services/adapter");
    return new EndpointReference(address);   
 
View Full Code Here

   */
  void executeExample(String host, int port) throws Exception
  {   
 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
View Full Code Here

   
    // ...and this is QMan too! Note that it has an hidden consumer capability that is used in
    // order to run successfully this example...
    URI consumerURI = URI.create("http://"+host+":"+port+"/qman/services/consumer");
   
    EndpointReference producerEPR = new EndpointReference(producerURI);   
    EndpointReference consumerEPR = new EndpointReference(consumerURI);
 
    // Example 1 : all messages on all topics without termination time.
        subscribeAllMessagesWithoutTerminationTime(producerEPR,consumerEPR);
       
    // Example 2 : all messages on all topics with termination time.
View Full Code Here

     *
     * @return the endpoint created starting by this application default URI.
     */
    public EndpointReference getDeploymentEPR()
    {
        return new EndpointReference(URI.create(getDefaultURI()));
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.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.