NO-JIRA fixing another test
test failing: org.apache.activemq.artemis.tests.integration.management.AddressControlTest.testSendMessage
This commit is contained in:
parent
564b75d66f
commit
3473618a06
|
@ -307,6 +307,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro
|
|||
try {
|
||||
return sendMessage(addressInfo.getName(), server, headers, type, body, durable, user, password);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new IllegalStateException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -435,7 +435,9 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
|
|||
|
||||
private void sendSessionNotification(final CoreNotificationType type) throws Exception {
|
||||
final TypedProperties props = new TypedProperties();
|
||||
props.putSimpleStringProperty(ManagementHelper.HDR_CONNECTION_NAME, SimpleString.toSimpleString(this.getConnectionID().toString()));
|
||||
if (this.getConnectionID() != null) {
|
||||
props.putSimpleStringProperty(ManagementHelper.HDR_CONNECTION_NAME, SimpleString.toSimpleString(this.getConnectionID().toString()));
|
||||
}
|
||||
props.putSimpleStringProperty(ManagementHelper.HDR_USER, SimpleString.toSimpleString(this.getUsername()));
|
||||
props.putSimpleStringProperty(ManagementHelper.HDR_SESSION_NAME, SimpleString.toSimpleString(this.getName()));
|
||||
|
||||
|
|
Loading…
Reference in New Issue