[JBoss JIRA] (ELY-1745) The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
by Darran Lofthouse (Jira)
[ https://issues.jboss.org/browse/ELY-1745?page=com.atlassian.jira.plugin.s... ]
Darran Lofthouse updated ELY-1745:
----------------------------------
Fix Version/s: 1.9.0.CR5
(was: 1.9.0.CR4)
> The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
> ----------------------------------------------------------------------------------------------
>
> Key: ELY-1745
> URL: https://issues.jboss.org/browse/ELY-1745
> Project: WildFly Elytron
> Issue Type: Bug
> Components: API / SPI
> Reporter: Darran Lofthouse
> Assignee: Justin Cook
> Priority: Major
> Fix For: 1.9.0.CR5
>
>
> The NPE is due to the following code: -
> {noformat}
> } else if (callback instanceof AvailableRealmsCallback) {
> Collection<String> names = stateRef.get().getMechanismConfiguration().getMechanismRealmNames();
> if (log.isTraceEnabled()) {
> log.tracef("Handling AvailableRealmsCallback: realms = [%s]", String.join(", ", names));
> }
> if (! names.isEmpty()) {
> ((AvailableRealmsCallback) callback).setRealmNames(names.toArray(new String[names.size()]));
> }
> handleOne(callbacks, idx + 1);
> {noformat}
> If mechanism configuration is mandatory this should report an appropriate error, if not it should fallback to specifying an empty list.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (WFLY-5838) Use WildFly thread pools in Artemis
by Emmanuel Hugonnet (Jira)
[ https://issues.jboss.org/browse/WFLY-5838?page=com.atlassian.jira.plugin.... ]
Emmanuel Hugonnet reassigned WFLY-5838:
---------------------------------------
Assignee: Emmanuel Hugonnet (was: Jeff Mesnil)
> Use WildFly thread pools in Artemis
> -----------------------------------
>
> Key: WFLY-5838
> URL: https://issues.jboss.org/browse/WFLY-5838
> Project: WildFly
> Issue Type: Enhancement
> Components: JMS
> Affects Versions: 10.0.0.CR4
> Reporter: Jeff Mesnil
> Assignee: Emmanuel Hugonnet
> Priority: Major
>
> Artemis provides a feature to inject its executor and scheduled executor services when a ArtemisServer is created.
> WildFly could leverage that to inject these services so that their thread pools are managed by WildFly.
> We would have total control on the creation and configuration of these thread pools using the org.boss.as.threads extension.
> The messaging-activemq extension would be updated so that a server resource would have new children using resource definitions from the org.boss.as.threads extension to configure their pools.
> {noformat}
> * server
> * bounded-queue-thread-pool or unbounded-queue-thread-pool -> for executor service
> * scheduled-thread-pool -> for scheduled executor service
> {noformat}
> Note that this RFE would not impact the Artemis RA that does not provide such executor injection. This will be covered by another JIRA issue.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months