*/
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";