Package javax.resource.spi.endpoint

Examples of javax.resource.spi.endpoint.MessageEndpointFactory


/*     */     }
/* 235 */     else if ("endpointActivation".equals(actionName))
/*     */     {
/* 237 */       if (params.length != 2)
/* 238 */         throw new IllegalArgumentException("Wrong number of parameters for " + actionName);
/* 239 */       MessageEndpointFactory messageEndpointFactory = (MessageEndpointFactory)params[0];
/* 240 */       ActivationSpec activationSpec = (ActivationSpec)params[1];
/* 241 */       endpointActivation(messageEndpointFactory, activationSpec);
/*     */     }
/* 243 */     else if ("endpointDeactivation".equals(actionName))
/*     */     {
/* 245 */       if (params.length != 2)
/* 246 */         throw new IllegalArgumentException("Wrong number of parameters for " + actionName);
/* 247 */       MessageEndpointFactory messageEndpointFactory = (MessageEndpointFactory)params[0];
/* 248 */       ActivationSpec activationSpec = (ActivationSpec)params[1];
/* 249 */       endpointDeactivation(messageEndpointFactory, activationSpec);
/*     */     }
/*     */
/* 252 */     return result;
View Full Code Here


/*     */     }
/* 278 */     if ("endpointActivation".equals(actionName))
/*     */     {
/* 280 */       if (params.length != 2)
/* 281 */         throw new IllegalArgumentException("Wrong number of parameters for " + actionName);
/* 282 */       MessageEndpointFactory messageEndpointFactory = (MessageEndpointFactory)params[0];
/* 283 */       ActivationSpec activationSpec = (ActivationSpec)params[1];
/* 284 */       endpointActivation(messageEndpointFactory, activationSpec);
/* 285 */       return null;
/*     */     }
/* 287 */     if ("endpointDeactivation".equals(actionName))
/*     */     {
/* 289 */       if (params.length != 2)
/* 290 */         throw new IllegalArgumentException("Wrong number of parameters for " + actionName);
/* 291 */       MessageEndpointFactory messageEndpointFactory = (MessageEndpointFactory)params[0];
/* 292 */       ActivationSpec activationSpec = (ActivationSpec)params[1];
/* 293 */       endpointDeactivation(messageEndpointFactory, activationSpec);
/* 294 */       return null;
/*     */     }
/* 296 */     return super.internalInvoke(actionName, params, signature);
View Full Code Here

/* 114 */       this.transacted = spec.isSessionTransacted();
/* 115 */       this.acknowledge = spec.getAcknowledgeModeInt();
/* 116 */       this.session = connection.createSession(this.transacted, this.acknowledge);
/*     */     }
/*     */
/* 120 */     MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
/*     */
/* 122 */     XAResource xaResource = null;
/*     */
/* 124 */     if ((activation.isDeliveryTransacted()) && (this.xaSession != null)) {
/* 125 */       xaResource = this.xaSession.getXAResource();
/*     */     }
/* 127 */     this.endpoint = endpointFactory.createEndpoint(xaResource);
/*     */
/* 130 */     this.session.setMessageListener(this);
/*     */   }
View Full Code Here

         }
         consumer = session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      transacted = activation.isDeliveryTransacted();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
         useXA = true;
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
         useXA = false;
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

        // set the resource adapter into the activation spec
        activationSpec.setResourceAdapter(ra);

        // create the message endpoint
        MessageEndpointFactory endpointFactory = new JmsEndpointFactory();

        // activate the endpoint
        ra.endpointActivation(endpointFactory, activationSpec);
    }
View Full Code Here

         }
         consumer = session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

         }
         consumer = session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

         }
         consumer = (ClientConsumerInternal)session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      transacted = activation.isDeliveryTransacted();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
         useXA = true;
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
         useXA = false;
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

         }
         consumer = (ClientConsumerInternal)session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      transacted = activation.isDeliveryTransacted();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
         useXA = true;
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
         useXA = false;
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

         }
         consumer = (ClientConsumerInternal)session.createConsumer(queueName, selectorString);
      }

      // Create the endpoint, if we are transacted pass the sesion so it is enlisted, unless using Local TX
      MessageEndpointFactory endpointFactory = activation.getMessageEndpointFactory();
      useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
      transacted = activation.isDeliveryTransacted();
      if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx())
      {
         endpoint = endpointFactory.createEndpoint(session);
         useXA = true;
      }
      else
      {
         endpoint = endpointFactory.createEndpoint(null);
         useXA = false;
      }
      consumer.setMessageHandler(this);
   }
View Full Code Here

TOP

Related Classes of javax.resource.spi.endpoint.MessageEndpointFactory

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.