Skip to content

Commit

Permalink
Merge pull request #846 from dakshina99/tm_thread_blocking
Browse files Browse the repository at this point in the history
[APIM][4.4.0] Handle errors when broker connection is not available
  • Loading branch information
AnuGayan authored Oct 15, 2024
2 parents 1604d95 + 48236f7 commit 701d1ae
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,8 @@ public JMSPooledConnectionHolder getConnectionFromPool() {
try {
return (JMSPooledConnectionHolder) this.connectionPool.borrowObject();
} catch (Exception e) {
log.error(e.getMessage(), e);
throw new OutputEventAdapterRuntimeException("Error in getting JMS connection from pool", e);
}
return null;
}


Expand Down Expand Up @@ -366,10 +365,8 @@ public Object makeObject() throws Exception {
entry.setProducer(producer);
return entry;
} catch (JMSException e) {
log.error(e.getMessage(), e);
return null;
throw new OutputEventAdapterRuntimeException("Error creating JMS connection holder from JMS CF : " + name, e);
}

}

@Override
Expand Down

0 comments on commit 701d1ae

Please sign in to comment.