Skip to content

Commit

Permalink
Allow warning to be returned at same time as conn - ibm-messaging#72
Browse files Browse the repository at this point in the history
  • Loading branch information
matrober-uk committed Oct 21, 2024
1 parent 1ee64dc commit f28f6a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mqjms/ConnectionFactoryImpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (cf ConnectionFactoryImpl) CreateContextWithSessionMode(sessionMode int, mq
// queue manager.
qMgr, err := ibmmq.Connx(cf.QMName, cno)

if err == nil {
if (qMgr != ibmmq.MQQueueManager{}) {

// Initialize the countInc value to 1 so that if CheckCount is enabled (>0)
// then an error check will be made after the first message - to catch any
Expand All @@ -163,7 +163,9 @@ func (cf ConnectionFactoryImpl) CreateContextWithSessionMode(sessionMode int, mq
sendCheckCountInc: countInc,
}

} else {
}

if err != nil {

// The underlying MQI call returned an error, so extract the relevant
// details and pass it back to the caller as a JMSException
Expand Down

0 comments on commit f28f6a7

Please sign in to comment.