Package javax.resource

Examples of javax.resource.NotSupportedException.initCause()


      if (logRCFailures) {
        jmse.printStackTrace();
      }
      NotSupportedException nse = new NotSupportedException(
          "MQRA:EC:Error:createRemoteMessageConsumer failed:aborting due to:" + jmse.getMessage());
      nse.initCause(jmse);
      throw nse;
    }

       
        // success
View Full Code Here


                            }
                            xac = null;
                        }
                        NotSupportedException nse = new NotSupportedException(
                               "MQRA:EC:Error clustering multiple consumers on Queue:\n"+jmse.getMessage());
                        nse.initCause(jmse);
                        throw nse;
                    }
                }
            }
            msgListener = new MessageListener(this, this.endpointFactory, aSpec);
View Full Code Here

                }
                xac = null;
            }
            NotSupportedException nse = new NotSupportedException(
                    "MQRA:EC:Error creating Remote Message Consumer:\n"+jmse.getMessage());
            nse.initCause(jmse);
            throw nse;
        }
    }

    /**
 
View Full Code Here

            errorMessage="MQRA:EC:No destination configured in ActivationSpec of MDB";
          } else {
            errorMessage="MQRA:EC:Invalid destination "+destName+" configured in ActivationSpec of MDB";
          }
            NotSupportedException nse = new NotSupportedException(errorMessage);
            nse.initCause(jmse);
            throw nse;
        }
        //XXX:Does MDB Deployment need physical dest to exist?
        //If so need Admin API to check
View Full Code Here

                }
                this.dc = null;
            }
            NotSupportedException nse = new NotSupportedException(
                    "MQRA:EC:Error creating Direct Message Consumer:\n"+jmse.getMessage());
            nse.initCause(jmse);
            throw nse;
        }
    }

    /**
 
View Full Code Here

    } catch (Exception ex) {
      _loggerIM.logp(Level.SEVERE, _className, "endpointActivation()", _lgrMID_EXC + ":Failed due to:"
          + ex.getMessage(), params);
      NotSupportedException nse = new NotSupportedException(
          "MQJMSRA-endpointActivation:Exception on createMessageConsumer:");
      nse.initCause(ex);
      _loggerIM.throwing(_className, "endpointActivation()", nse);
      throw nse;
    }
    _loggerIM.exiting(_className, "endpointActivation()");
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.