Package org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl

Examples of org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.SharedConnection


   */
  private boolean reject( PendingMessage pm, Exception e ) {
    boolean rejectRequest = false;
    //  If the connection to a broker was lost, notify the client
    //  and reject the request unless this is getMeta Ping request.
    SharedConnection sharedConnection = engine.lookupConnection(engine.getBrokerURI());
    if ( sharedConnection != null && !sharedConnection.isConnectionValid() ) {
      String messageKind = "";
      if (pm.getMessageType() == AsynchAEMessage.GetMeta ) {
        messageKind = "GetMeta";
      } else if (pm.getMessageType() == AsynchAEMessage.Process ) {
        messageKind = "Process";
View Full Code Here


   */
  private boolean reject( PendingMessage pm, Exception e ) {
    boolean rejectRequest = false;
    //  If the connection to a broker was lost, notify the client
    //  and reject the request unless this is getMeta Ping request.
    SharedConnection sharedConnection = engine.lookupConnection(engine.getBrokerURI());
    if ( sharedConnection != null && !sharedConnection.isConnectionValid() ) {
      String messageKind = "";
      if (pm.getMessageType() == AsynchAEMessage.GetMeta ) {
        messageKind = "GetMeta";
      } else if (pm.getMessageType() == AsynchAEMessage.Process ) {
        messageKind = "Process";
View Full Code Here

   * Returns jsm MessageProducer
   */
  public MessageProducer getMessageProducer() {
    if ( engine.running && engine.producerInitialized == false  ) {
      try {
        SharedConnection con = engine.lookupConnection(getBrokerURL());
        if ( con != null ) {
          setConnection(con.getConnection());
          initializeProducer();
          engine.producerInitialized = true;
        }
      } catch( Exception e) {
        e.printStackTrace();
View Full Code Here

   */
  private boolean reject( PendingMessage pm, Exception e ) {
    boolean rejectRequest = false;
    //  If the connection to a broker was lost, notify the client
    //  and reject the request unless this is getMeta Ping request.
    SharedConnection sharedConnection = engine.lookupConnection(engine.getBrokerURI());
    if ( sharedConnection != null && !sharedConnection.isConnectionValid() ) {
      String messageKind = "";
      if (pm.getMessageType() == AsynchAEMessage.GetMeta ) {
        messageKind = "GetMeta";
      } else if (pm.getMessageType() == AsynchAEMessage.Process ) {
        messageKind = "Process";
View Full Code Here

TOP

Related Classes of org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.SharedConnection

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.