Skip to content

Commit

Permalink
[WFLY-17566] Messaging: fixes after removing legacy security attribut…
Browse files Browse the repository at this point in the history
…es from connector
  • Loading branch information
tadamski committed Mar 30, 2023
1 parent 96578b3 commit 1fbed98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ private static ConnectionDefinition createConnDef(TransactionSupportEnum transac
// <application />
// </security>
// => PoolStrategy.POOL_BY_CRI
Security security = new SecurityImpl(null, null, true, false);
Security security = new SecurityImpl(null, null, true);
// register the XA Connection *without* recovery. ActiveMQ already takes care of the registration with the correct credentials
// when its ResourceAdapter is started
Recovery recovery = new Recovery(new CredentialImpl(null, null, null, false, null), null, Boolean.TRUE);
Recovery recovery = new Recovery(new CredentialImpl(null, null, null, null), null, Boolean.TRUE);
Validation validation = new ValidationImpl(Defaults.VALIDATE_ON_MATCH, null, null, false);
// do no track
return new ConnectionDefinitionImpl(Collections.<String, String>emptyMap(), RAMANAGED_CONN_FACTORY, jndiName, ACTIVEMQ_CONN_DEF, true, true, true, Defaults.SHARABLE, Defaults.ENLISTMENT, Defaults.CONNECTABLE, false, managedConnectionPoolClassName, enlistmentTrace, pool, timeOut, validation, security, recovery, isXA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,10 @@ private static ConnectionDefinition createConnDef(TransactionSupportEnum transac
// <application />
// </security>
// => PoolStrategy.POOL_BY_CRI
Security security = new SecurityImpl(null, null, true, false);
Security security = new SecurityImpl(null, null, true);
// register the XA Connection *without* recovery. ActiveMQ already takes care of the registration with the correct credentials
// when its ResourceAdapter is started
Recovery recovery = new Recovery(new CredentialImpl(null, null, null, false, null), null, Boolean.TRUE);
Recovery recovery = new Recovery(new CredentialImpl(null, null, null, null), null, Boolean.TRUE);
Validation validation = new ValidationImpl(Defaults.VALIDATE_ON_MATCH, null, null, false);
// do no track
return new ConnectionDefinitionImpl(Collections.<String, String>emptyMap(), RAMANAGED_CONN_FACTORY, jndiName, ACTIVEMQ_CONN_DEF, true, true, true, Defaults.SHARABLE, Defaults.ENLISTMENT, Defaults.CONNECTABLE, false, managedConnectionPoolClassName, enlistmentTrace, pool, timeOut, validation, security, recovery, isXA);
Expand Down

0 comments on commit 1fbed98

Please sign in to comment.