Skip to content

Commit

Permalink
Revert "[WFLY-9989] Bump messaging-activemq model version to 3.1.0"
Browse files Browse the repository at this point in the history
This reverts commit 41c9b45.
  • Loading branch information
jmesnil committed May 14, 2018
1 parent f4b6b3a commit 3de4699
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 2,931 deletions.
Expand Up @@ -149,12 +149,11 @@ public class MessagingExtension implements Extension {

static final String RESOURCE_NAME = MessagingExtension.class.getPackage().getName() + ".LocalDescriptions";

protected static final ModelVersion VERSION_3_1_0 = ModelVersion.create(3, 1, 0);
protected static final ModelVersion VERSION_3_0_0 = ModelVersion.create(3, 0, 0);
protected static final ModelVersion VERSION_2_0_0 = ModelVersion.create(2, 0, 0);
protected static final ModelVersion VERSION_1_0_0 = ModelVersion.create(1, 0, 0);
private static final ModelVersion CURRENT_MODEL_VERSION = VERSION_3_1_0;
private static final MessagingSubsystemParser_3_1 CURRENT_PARSER = new MessagingSubsystemParser_3_1();
private static final ModelVersion CURRENT_MODEL_VERSION = VERSION_3_0_0;
private static final MessagingSubsystemParser_3_0 CURRENT_PARSER = new MessagingSubsystemParser_3_0();

public static ResourceDescriptionResolver getResourceDescriptionResolver(final String... keyPrefix) {
return getResourceDescriptionResolver(true, keyPrefix);
Expand Down Expand Up @@ -212,7 +211,6 @@ public void initialize(ExtensionContext context) {
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, MessagingSubsystemParser_1_0.NAMESPACE, MessagingSubsystemParser_1_0::new);
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, MessagingSubsystemParser_2_0.NAMESPACE, MessagingSubsystemParser_2_0::new);
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, MessagingSubsystemParser_3_0.NAMESPACE, MessagingSubsystemParser_3_0::new);
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, MessagingSubsystemParser_3_1.NAMESPACE, CURRENT_PARSER);
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, MessagingSubsystemParser_3_0.NAMESPACE, CURRENT_PARSER);
}
}

This file was deleted.

Expand Up @@ -63,7 +63,7 @@ public void registerTransformers(SubsystemTransformerRegistration registration)
registerTransformers_EAP_7_1_0(builder.createBuilder(MessagingExtension.VERSION_3_0_0, MessagingExtension.VERSION_2_0_0));
registerTransformers_EAP_7_0_0(builder.createBuilder(MessagingExtension.VERSION_2_0_0, MessagingExtension.VERSION_1_0_0));

builder.buildAndRegister(registration, new ModelVersion[] { MessagingExtension.VERSION_1_0_0, MessagingExtension.VERSION_2_0_0, MessagingExtension.VERSION_3_0_0 });
builder.buildAndRegister(registration, new ModelVersion[] { MessagingExtension.VERSION_1_0_0, MessagingExtension.VERSION_2_0_0 });
}

private static void registerTransformers_EAP_7_1_0(ResourceTransformationDescriptionBuilder subsystem) {
Expand Down

This file was deleted.

Expand Up @@ -3,7 +3,7 @@
<config>
<!-- This is very different from the normal messaging setup, do duplicating the config is easier -->
<extension-module>org.wildfly.extension.messaging-activemq</extension-module>
<subsystem xmlns="urn:jboss:domain:messaging-activemq:3.1">
<subsystem xmlns="urn:jboss:domain:messaging-activemq:3.0">
<server name="default"
persistence-enabled="true">
<cluster password="${jboss.messaging.cluster.password:CHANGE ME!!}" />
Expand Down
Expand Up @@ -2,7 +2,7 @@
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config default-supplement="default">
<extension-module>org.wildfly.extension.messaging-activemq</extension-module>
<subsystem xmlns="urn:jboss:domain:messaging-activemq:3.1">
<subsystem xmlns="urn:jboss:domain:messaging-activemq:3.0">
<server name="default">
<?CLUSTERED?>

Expand Down
Expand Up @@ -82,6 +82,14 @@ protected String getSubsystemXsdPath() throws IOException {
return "schema/wildfly-messaging-activemq_3_0.xsd";
}

@Override
protected String[] getSubsystemTemplatePaths() throws IOException {
return new String[] {
"/subsystem-templates/messaging-activemq.xml",
"/subsystem-templates/messaging-activemq-colocated.xml",
};
}

@Override
protected Properties getResolvedProperties() {
Properties properties = new Properties();
Expand All @@ -90,10 +98,12 @@ protected Properties getResolvedProperties() {
return properties;
}

@Test
@Override
protected KernelServices standardSubsystemTest(String configId, boolean compareXml) throws Exception {
return super.standardSubsystemTest(configId, false);
public void testSchemaOfSubsystemTemplates() throws Exception {
super.testSchemaOfSubsystemTemplates();
}

/////////////////////////////////////////
// Tests for HA Policy Configuration //
/////////////////////////////////////////
Expand Down

This file was deleted.

0 comments on commit 3de4699

Please sign in to comment.