ARTEMIS-4318 migrate to Airline 2

The "Airline" library we're currently using is deprecated according the
GitHub project - https://github.com/airlift/airline. It recommends using
either Airline 2 or Picocli. The former offers the simplest migration
path as it's almost completely compatible with the current code. This
commit implements that migration.
This commit is contained in:
Justin Bertram 2023-06-19 16:18:17 -05:00 committed by clebertsuconic
parent 2d1a8661fd
commit 4b91d1d57e
67 changed files with 143 additions and 124 deletions

View File

@ -100,7 +100,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.airlift</groupId> <groupId>com.github.rvesse</groupId>
<artifactId>airline</artifactId> <artifactId>airline</artifactId>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -22,7 +22,8 @@ import java.io.OutputStream;
import java.io.PrintStream; import java.io.PrintStream;
import java.util.List; import java.util.List;
import io.airlift.airline.Cli; import com.github.rvesse.airline.Cli;
import com.github.rvesse.airline.builder.CliBuilder;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.Create; import org.apache.activemq.artemis.cli.commands.Create;
@ -213,9 +214,9 @@ public class Artemis {
return action.execute(context); return action.execute(context);
} }
private static Cli.CliBuilder<Action> builder(File artemisInstance) { private static CliBuilder<Action> builder(File artemisInstance) {
String instance = artemisInstance != null ? artemisInstance.getAbsolutePath() : System.getProperty("artemis.instance"); String instance = artemisInstance != null ? artemisInstance.getAbsolutePath() : System.getProperty("artemis.instance");
Cli.CliBuilder<Action> builder = Cli.<Action>builder("artemis").withDescription("ActiveMQ Artemis Command Line"). CliBuilder<Action> builder = Cli.<Action>builder("artemis").withDescription("ActiveMQ Artemis Command Line").
withCommand(HelpAction.class).withCommand(Producer.class).withCommand(Transfer.class).withCommand(Consumer.class). withCommand(HelpAction.class).withCommand(Producer.class).withCommand(Transfer.class).withCommand(Consumer.class).
withCommand(Browse.class).withCommand(Mask.class).withCommand(PrintVersion.class).withDefaultCommand(HelpAction.class); withCommand(Browse.class).withCommand(Mask.class).withCommand(PrintVersion.class).withDefaultCommand(HelpAction.class);

View File

@ -21,7 +21,7 @@ import java.net.InetAddress;
import java.net.URI; import java.net.URI;
import java.util.Map; import java.util.Map;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.TransportConfiguration; import org.apache.activemq.artemis.api.core.TransportConfiguration;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;
import org.apache.activemq.artemis.core.config.FileDeploymentManager; import org.apache.activemq.artemis.core.config.FileDeploymentManager;

View File

@ -17,15 +17,15 @@
package org.apache.activemq.artemis.cli.commands; package org.apache.activemq.artemis.cli.commands;
import javax.inject.Inject;
import java.io.File; import java.io.File;
import io.airlift.airline.Arguments; import com.github.rvesse.airline.annotations.AirlineModule;
import io.airlift.airline.Help; import com.github.rvesse.airline.annotations.Arguments;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import io.airlift.airline.model.CommandGroupMetadata; import com.github.rvesse.airline.help.Help;
import io.airlift.airline.model.CommandMetadata; import com.github.rvesse.airline.model.CommandGroupMetadata;
import io.airlift.airline.model.GlobalMetadata; import com.github.rvesse.airline.model.CommandMetadata;
import com.github.rvesse.airline.model.GlobalMetadata;
import org.apache.activemq.artemis.api.core.ActiveMQException; import org.apache.activemq.artemis.api.core.ActiveMQException;
import org.apache.activemq.artemis.cli.factory.BrokerFactory; import org.apache.activemq.artemis.cli.factory.BrokerFactory;
import org.apache.activemq.artemis.cli.factory.jmx.ManagementFactory; import org.apache.activemq.artemis.cli.factory.jmx.ManagementFactory;
@ -36,6 +36,8 @@ import org.apache.activemq.artemis.dto.ManagementContextDTO;
import org.apache.activemq.artemis.jms.server.config.impl.FileJMSConfiguration; import org.apache.activemq.artemis.jms.server.config.impl.FileJMSConfiguration;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles;
/** /**
@ -51,8 +53,8 @@ public abstract class Configurable extends ActionAbstract {
@Option(name = "--broker", description = "Override the broker configuration from the bootstrap.xml.") @Option(name = "--broker", description = "Override the broker configuration from the bootstrap.xml.")
String brokerConfig; String brokerConfig;
@Inject @AirlineModule
public GlobalMetadata global; public GlobalMetadata<Object> global;
private BrokerDTO brokerDTO = null; private BrokerDTO brokerDTO = null;
@ -75,7 +77,11 @@ public abstract class Configurable extends ActionAbstract {
if (group.getName().equals(groupName)) { if (group.getName().equals(groupName)) {
for (CommandMetadata command : group.getCommands()) { for (CommandMetadata command : group.getCommands()) {
if (command.getName().equals(commandName)) { if (command.getName().equals(commandName)) {
Help.help(command); try {
Help.help(command);
} catch (IOException e) {
throw new RuntimeException(e);
}
} }
} }
break; break;

View File

@ -25,8 +25,8 @@ import java.text.DecimalFormat;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration; import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
import org.apache.activemq.artemis.api.core.RoutingType; import org.apache.activemq.artemis.api.core.RoutingType;
import org.apache.activemq.artemis.cli.commands.util.HashUtil; import org.apache.activemq.artemis.cli.commands.util.HashUtil;

View File

@ -18,7 +18,7 @@ package org.apache.activemq.artemis.cli.commands;
import java.io.File; import java.io.File;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
public class HelpAction extends Help implements Action { public class HelpAction extends Help implements Action {

View File

@ -19,7 +19,7 @@ package org.apache.activemq.artemis.cli.commands;
import java.util.Scanner; import java.util.Scanner;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
public class InputAbstract extends ActionAbstract { public class InputAbstract extends ActionAbstract {

View File

@ -30,13 +30,15 @@ import java.util.Map;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import io.airlift.airline.Arguments; import com.github.rvesse.airline.annotations.Arguments;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.cli.CLIException; import org.apache.activemq.artemis.cli.CLIException;
public class InstallAbstract extends InputAbstract { public class InstallAbstract extends InputAbstract {
@Arguments(description = "The instance directory to hold the broker's configuration and data. Path must be writable.", required = true) @Arguments(description = "The instance directory to hold the broker's configuration and data. Path must be writable.")
@Required
protected File directory; protected File directory;
@Option(name = "--etc", description = "Directory where ActiveMQ configuration is located. Paths can be absolute or relative to artemis.instance directory. Default: etc.") @Option(name = "--etc", description = "Directory where ActiveMQ configuration is located. Paths can be absolute or relative to artemis.instance directory. Default: etc.")

View File

@ -18,7 +18,7 @@ package org.apache.activemq.artemis.cli.commands;
import java.io.File; import java.io.File;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.dto.BrokerDTO; import org.apache.activemq.artemis.dto.BrokerDTO;
@Command(name = "kill", description = "Kill a broker started with --allow-kill.") @Command(name = "kill", description = "Kill a broker started with --allow-kill.")

View File

@ -19,9 +19,10 @@ package org.apache.activemq.artemis.cli.commands;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import io.airlift.airline.Arguments; import com.github.rvesse.airline.annotations.Arguments;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;
import org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec; import org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec;
import org.apache.activemq.artemis.utils.PasswordMaskingUtil; import org.apache.activemq.artemis.utils.PasswordMaskingUtil;
@ -30,7 +31,8 @@ import org.apache.activemq.artemis.utils.SensitiveDataCodec;
@Command(name = "mask", description = "Mask a password and print it out.") @Command(name = "mask", description = "Mask a password and print it out.")
public class Mask extends ActionAbstract { public class Mask extends ActionAbstract {
@Arguments(description = "The password to be masked.", required = true) @Arguments(description = "The password to be masked.")
@Required
String password; String password;
@Option(name = "--hash", description = "Whether to use a hash (one-way). Default: false.") @Option(name = "--hash", description = "Whether to use a hash (one-way). Default: false.")

View File

@ -20,7 +20,7 @@ import java.lang.reflect.Field;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
public class OptionsUtil { public class OptionsUtil {

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands; package org.apache.activemq.artemis.cli.commands;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.core.version.Version; import org.apache.activemq.artemis.core.version.Version;
import org.apache.activemq.artemis.utils.VersionLoader; import org.apache.activemq.artemis.utils.VersionLoader;

View File

@ -21,8 +21,8 @@ import java.util.Timer;
import java.util.TimerTask; import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration; import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
import org.apache.activemq.artemis.api.core.Pair; import org.apache.activemq.artemis.api.core.Pair;
import org.apache.activemq.artemis.cli.Artemis; import org.apache.activemq.artemis.cli.Artemis;

View File

@ -18,7 +18,7 @@ package org.apache.activemq.artemis.cli.commands;
import java.io.File; import java.io.File;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.dto.BrokerDTO; import org.apache.activemq.artemis.dto.BrokerDTO;
@Command(name = "stop", description = "Stop the broker.") @Command(name = "stop", description = "Stop the broker.")

View File

@ -30,7 +30,7 @@ import java.util.function.Consumer;
import java.util.function.Function; import java.util.function.Function;
import java.util.stream.Stream; import java.util.stream.Stream;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.util.JVMArgumentParser; import org.apache.activemq.artemis.util.JVMArgumentParser;
@Command(name = "upgrade", description = "Update a broker instance to the current artemis.home, keeping all the data and broker.xml. Warning: backup your instance before using this command and compare the files.") @Command(name = "upgrade", description = "Update a broker instance to the current artemis.home, keeping all the data and broker.xml. Warning: backup your instance before using this command and compare the files.")

View File

@ -20,8 +20,8 @@ import java.io.PrintStream;
import java.util.Objects; import java.util.Objects;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.LockAbstract; import org.apache.activemq.artemis.cli.commands.tools.LockAbstract;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;

View File

@ -20,8 +20,9 @@ import java.io.PrintStream;
import java.util.Objects; import java.util.Objects;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.LockAbstract; import org.apache.activemq.artemis.cli.commands.tools.LockAbstract;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;
@ -41,13 +42,18 @@ import static org.apache.activemq.artemis.cli.commands.activation.ActivationSequ
public class ActivationSequenceSet extends LockAbstract { public class ActivationSequenceSet extends LockAbstract {
private static final int MANAGER_START_TIMEOUT_SECONDS = 60; private static final int MANAGER_START_TIMEOUT_SECONDS = 60;
@Option(name = "--node-id", description = "Target sequence for this UUID overwriting the NodeID of this broker too. If not set, broker NodeID is used instead.") @Option(name = "--node-id", description = "Target sequence for this UUID overwriting the NodeID of this broker too. If not set, broker NodeID is used instead.")
public String nodeId = null; public String nodeId = null;
@Option(name = "--remote", description = "Set just remote (i.e. coordinated) activation sequence.") @Option(name = "--remote", description = "Set just remote (i.e. coordinated) activation sequence.")
public boolean remote = false; public boolean remote = false;
@Option(name = "--local", description = "Set just local activation sequence.") @Option(name = "--local", description = "Set just local activation sequence.")
public boolean local = false; public boolean local = false;
@Option(name = "--to", description = "The new activation sequence.", required = true)
@Option(name = "--to", description = "The new activation sequence.")
@Required
public long value; public long value;
@Override @Override

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.address; package org.apache.activemq.artemis.cli.commands.address;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;
public abstract class AddressAbstract extends AbstractAction { public abstract class AddressAbstract extends AbstractAction {

View File

@ -17,7 +17,7 @@
package org.apache.activemq.artemis.cli.commands.address; package org.apache.activemq.artemis.cli.commands.address;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -17,8 +17,8 @@
package org.apache.activemq.artemis.cli.commands.address; package org.apache.activemq.artemis.cli.commands.address;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -21,7 +21,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -17,8 +17,8 @@
package org.apache.activemq.artemis.cli.commands.address; package org.apache.activemq.artemis.cli.commands.address;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.address; package org.apache.activemq.artemis.cli.commands.address;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;

View File

@ -23,7 +23,7 @@ import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.management.ActiveMQManagementProxy; import org.apache.activemq.artemis.api.core.management.ActiveMQManagementProxy;
import org.apache.activemq.artemis.cli.CLIException; import org.apache.activemq.artemis.cli.CLIException;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;

View File

@ -21,7 +21,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -19,8 +19,8 @@ package org.apache.activemq.artemis.cli.commands.check;
import java.util.ArrayList; import java.util.ArrayList;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.management.NodeInfo; import org.apache.activemq.artemis.api.core.management.NodeInfo;
@Command(name = "node", description = "Check a node.") @Command(name = "node", description = "Check a node.")

View File

@ -27,8 +27,8 @@ import javax.jms.Session;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Enumeration; import java.util.Enumeration;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.management.ResourceNames; import org.apache.activemq.artemis.api.core.management.ResourceNames;
@Command(name = "queue", description = "Check a queue.") @Command(name = "queue", description = "Check a queue.")

View File

@ -22,8 +22,8 @@ import javax.jms.ConnectionFactory;
import javax.jms.Destination; import javax.jms.Destination;
import javax.jms.Session; import javax.jms.Session;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
@Command(name = "browser", description = "Browse messages on a queue.") @Command(name = "browser", description = "Browse messages on a queue.")

View File

@ -21,7 +21,7 @@ import javax.jms.ConnectionFactory;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.JMSSecurityException; import javax.jms.JMSSecurityException;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InputAbstract; import org.apache.activemq.artemis.cli.commands.InputAbstract;
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory; import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;

View File

@ -26,8 +26,8 @@ import javax.jms.Session;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.OutputStream; import java.io.OutputStream;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer; import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer;

View File

@ -21,7 +21,7 @@ import javax.jms.Destination;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.Session; import javax.jms.Session;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer; import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer;
import org.apache.activemq.artemis.cli.factory.serialize.XMLMessageSerializer; import org.apache.activemq.artemis.cli.factory.serialize.XMLMessageSerializer;
import org.apache.activemq.artemis.jms.client.ActiveMQDestination; import org.apache.activemq.artemis.jms.client.ActiveMQDestination;

View File

@ -27,8 +27,8 @@ import javax.jms.Session;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.InputStream; import java.io.InputStream;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer; import org.apache.activemq.artemis.cli.factory.serialize.MessageSerializer;

View File

@ -28,8 +28,8 @@ import javax.jms.Queue;
import javax.jms.Session; import javax.jms.Session;
import javax.jms.Topic; import javax.jms.Topic;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.Pair; import org.apache.activemq.artemis.api.core.Pair;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InputAbstract; import org.apache.activemq.artemis.cli.commands.InputAbstract;

View File

@ -25,8 +25,8 @@ import java.util.concurrent.LinkedTransferQueue;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.LockSupport; import java.util.concurrent.locks.LockSupport;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import io.netty.channel.DefaultEventLoop; import io.netty.channel.DefaultEventLoop;
import io.netty.channel.DefaultEventLoopGroup; import io.netty.channel.DefaultEventLoopGroup;
import io.netty.channel.EventLoop; import io.netty.channel.EventLoop;

View File

@ -26,8 +26,8 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.LockSupport; import java.util.concurrent.locks.LockSupport;
import io.airlift.airline.Arguments; import com.github.rvesse.airline.annotations.Arguments;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract; import org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract;
import org.apache.activemq.artemis.cli.commands.messages.DestAbstract; import org.apache.activemq.artemis.cli.commands.messages.DestAbstract;

View File

@ -21,8 +21,8 @@ import javax.jms.Destination;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.LockSupport; import java.util.concurrent.locks.LockSupport;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
@Command(name = "consumer", description = "Consume messages from a queue.") @Command(name = "consumer", description = "Consume messages from a queue.")

View File

@ -25,8 +25,8 @@ import java.util.concurrent.LinkedTransferQueue;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.LockSupport; import java.util.concurrent.locks.LockSupport;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import io.netty.channel.DefaultEventLoop; import io.netty.channel.DefaultEventLoop;
import io.netty.channel.DefaultEventLoopGroup; import io.netty.channel.DefaultEventLoopGroup;
import io.netty.channel.EventLoop; import io.netty.channel.EventLoop;

View File

@ -17,7 +17,7 @@
package org.apache.activemq.artemis.cli.commands.queue; package org.apache.activemq.artemis.cli.commands.queue;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -17,8 +17,8 @@
package org.apache.activemq.artemis.cli.commands.queue; package org.apache.activemq.artemis.cli.commands.queue;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -21,7 +21,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -17,8 +17,8 @@
package org.apache.activemq.artemis.cli.commands.queue; package org.apache.activemq.artemis.cli.commands.queue;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.api.core.management.ResourceNames; import org.apache.activemq.artemis.api.core.management.ResourceNames;

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.queue; package org.apache.activemq.artemis.cli.commands.queue;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;
public class QueueAbstract extends AbstractAction { public class QueueAbstract extends AbstractAction {

View File

@ -21,8 +21,8 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.JsonUtil; import org.apache.activemq.artemis.api.core.JsonUtil;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.queue; package org.apache.activemq.artemis.cli.commands.queue;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;

View File

@ -25,7 +25,7 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadFactory;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration; import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;

View File

@ -19,7 +19,7 @@ package org.apache.activemq.artemis.cli.commands.tools;
import java.io.File; import java.io.File;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.Configurable; import org.apache.activemq.artemis.cli.commands.Configurable;
/** /**

View File

@ -21,7 +21,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -18,7 +18,7 @@ package org.apache.activemq.artemis.cli.commands.tools;
import java.io.File; import java.io.File;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
/** /**
* This is for commands where --f on ignoring lock could be valid. * This is for commands where --f on ignoring lock could be valid.

View File

@ -27,8 +27,8 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledExecutorService;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
import org.apache.activemq.artemis.api.core.ActiveMQBuffers; import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
import org.apache.activemq.artemis.api.core.SimpleString; import org.apache.activemq.artemis.api.core.SimpleString;

View File

@ -20,8 +20,9 @@ import java.io.File;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.api.core.Pair; import org.apache.activemq.artemis.api.core.Pair;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;
@ -48,7 +49,8 @@ public class RecoverMessages extends DBOption {
@Option(name = "--reclaimed", description = "Try to recover as many records as possible from reclaimed files.") @Option(name = "--reclaimed", description = "Try to recover as many records as possible from reclaimed files.")
private boolean reclaimed = false; private boolean reclaimed = false;
@Option(name = "--target", description = "Output folder container the new journal with all the generated messages.", required = true) @Option(name = "--target", description = "Output folder container the new journal with all the generated messages.")
@Required
private String outputJournal; private String outputJournal;

View File

@ -18,7 +18,7 @@ package org.apache.activemq.artemis.cli.commands.tools.journal;
import java.io.File; import java.io.File;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.LockAbstract; import org.apache.activemq.artemis.cli.commands.tools.LockAbstract;
import org.apache.activemq.artemis.core.config.Configuration; import org.apache.activemq.artemis.core.config.Configuration;

View File

@ -27,8 +27,9 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.LockAbstract; import org.apache.activemq.artemis.cli.commands.tools.LockAbstract;
import org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory; import org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory;
@ -51,7 +52,8 @@ public class DecodeJournal extends LockAbstract {
@Option(name = "--file-size", description = "The journal size. Default: 10485760.") @Option(name = "--file-size", description = "The journal size. Default: 10485760.")
public int size = 10485760; public int size = 10485760;
@Option(name = "--input", description = "The input file name. Default: exp.dmp.", required = true) @Option(name = "--input", description = "The input file name. Default: exp.dmp.")
@Required
public String input = "exp.dmp"; public String input = "exp.dmp";
@Override @Override

View File

@ -22,8 +22,8 @@ import java.io.FileOutputStream;
import java.io.PrintStream; import java.io.PrintStream;
import java.util.List; import java.util.List;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.LockAbstract; import org.apache.activemq.artemis.cli.commands.tools.LockAbstract;
import org.apache.activemq.artemis.core.io.SequentialFileFactory; import org.apache.activemq.artemis.core.io.SequentialFileFactory;

View File

@ -18,8 +18,8 @@ package org.apache.activemq.artemis.cli.commands.tools.journal;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.tools.OptionalLocking; import org.apache.activemq.artemis.cli.commands.tools.OptionalLocking;
import org.apache.activemq.artemis.cli.commands.util.SyncCalculation; import org.apache.activemq.artemis.cli.commands.util.SyncCalculation;

View File

@ -33,7 +33,7 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.TreeMap; import java.util.TreeMap;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.ActiveMQBuffer; import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
import org.apache.activemq.artemis.api.core.ActiveMQBuffers; import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
import org.apache.activemq.artemis.api.core.ICoreMessage; import org.apache.activemq.artemis.api.core.ICoreMessage;

View File

@ -34,8 +34,9 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.TreeSet; import java.util.TreeSet;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.restrictions.Required;
import org.apache.activemq.artemis.api.core.Message; import org.apache.activemq.artemis.api.core.Message;
import org.apache.activemq.artemis.api.core.QueueConfiguration; import org.apache.activemq.artemis.api.core.QueueConfiguration;
import org.apache.activemq.artemis.api.core.RoutingType; import org.apache.activemq.artemis.api.core.RoutingType;
@ -106,7 +107,8 @@ public final class XmlDataImporter extends ActionAbstract {
@Option(name = "--password", description = "User name used to import the data. Default: null.") @Option(name = "--password", description = "User name used to import the data. Default: null.")
public String password = null; public String password = null;
@Option(name = "--input", description = "The input file name. Default: exp.dmp.", required = true) @Option(name = "--input", description = "The input file name. Default: exp.dmp.")
@Required
public String input = "exp.dmp"; public String input = "exp.dmp";
@Option(name = "--sort", description = "Sort the messages from the input (used for older versions that won't sort messages).") @Option(name = "--sort", description = "Sort the messages from the input (used for older versions that won't sort messages).")

View File

@ -16,8 +16,8 @@
*/ */
package org.apache.activemq.artemis.cli.commands.user; package org.apache.activemq.artemis.cli.commands.user;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;

View File

@ -20,7 +20,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import io.airlift.airline.Help; import com.github.rvesse.airline.help.Help;
import org.apache.activemq.artemis.cli.commands.Action; import org.apache.activemq.artemis.cli.commands.Action;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -19,7 +19,7 @@ package org.apache.activemq.artemis.cli.commands.user;
import org.apache.activemq.artemis.json.JsonArray; import org.apache.activemq.artemis.json.JsonArray;
import org.apache.activemq.artemis.json.JsonObject; import org.apache.activemq.artemis.json.JsonObject;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.JsonUtil; import org.apache.activemq.artemis.api.core.JsonUtil;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.user; package org.apache.activemq.artemis.cli.commands.user;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
public class PasswordAction extends UserAction { public class PasswordAction extends UserAction {

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.user; package org.apache.activemq.artemis.cli.commands.user;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;

View File

@ -16,8 +16,8 @@
*/ */
package org.apache.activemq.artemis.cli.commands.user; package org.apache.activemq.artemis.cli.commands.user;
import io.airlift.airline.Command; import com.github.rvesse.airline.annotations.Command;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.api.core.client.ClientMessage; import org.apache.activemq.artemis.api.core.client.ClientMessage;
import org.apache.activemq.artemis.api.core.management.ManagementHelper; import org.apache.activemq.artemis.api.core.management.ManagementHelper;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.artemis.cli.commands.user; package org.apache.activemq.artemis.cli.commands.user;
import io.airlift.airline.Option; import com.github.rvesse.airline.annotations.Option;
import org.apache.activemq.artemis.cli.commands.AbstractAction; import org.apache.activemq.artemis.cli.commands.AbstractAction;
public abstract class UserAction extends AbstractAction { public abstract class UserAction extends AbstractAction {

View File

@ -16,7 +16,7 @@
*/ */
package org.apache.activemq.cli.test; package org.apache.activemq.cli.test;
import io.airlift.airline.ParseArgumentsUnexpectedException; import com.github.rvesse.airline.parser.errors.ParseArgumentsUnexpectedException;
import org.apache.activemq.artemis.cli.Artemis; import org.apache.activemq.artemis.cli.Artemis;
import org.apache.activemq.artemis.cli.commands.ActionContext; import org.apache.activemq.artemis.cli.commands.ActionContext;
import org.apache.activemq.artemis.cli.commands.InvalidOptionsError; import org.apache.activemq.artemis.cli.commands.InvalidOptionsError;

View File

@ -60,14 +60,14 @@ Artemis server. User Application 1 is using the JMS API, while User Application
You can see from the diagram that the JMS API is implemented by a thin facade You can see from the diagram that the JMS API is implemented by a thin facade
layer on the client side. layer on the client side.
## Stand-alone Broker ## Standalone Broker
The normal stand-alone messaging broker configuration comprises a core The normal stand-alone messaging broker configuration comprises a core
messaging broker and a number of protocol managers that provide support for the messaging broker and a number of protocol managers that provide support for the
various protocol mentioned earlier. various protocol mentioned earlier.
The stand-alone broker configuration uses The standalone broker configuration uses
[Airline](https://github.com/airlift/airline) for bootstrapping the Broker. [Airline](http://rvesse.github.io/airline/) for bootstrapping the Broker.
The stand-alone broker architecture is shown in figure 3.3 below: The stand-alone broker architecture is shown in figure 3.3 below:

View File

@ -125,4 +125,4 @@ Framework. See [Spring Integration](spring-integration.md) for more details on
Spring and Apache ActiveMQ Artemis. Spring and Apache ActiveMQ Artemis.
Apache ActiveMQ Artemis standalone uses Apache ActiveMQ Artemis standalone uses
[Airline](https://github.com/airlift/airline) to bootstrap. [Airline](http://rvesse.github.io/airline/) to bootstrap.

14
pom.xml
View File

@ -128,7 +128,7 @@
<qpid.jms.version>1.9.0</qpid.jms.version> <qpid.jms.version>1.9.0</qpid.jms.version>
<johnzon.version>1.2.16</johnzon.version> <johnzon.version>1.2.16</johnzon.version>
<hawtbuff.version>1.11</hawtbuff.version> <hawtbuff.version>1.11</hawtbuff.version>
<airlift.version>0.8</airlift.version> <airline.version>2.9.0</airline.version>
<jakarta.activation-api.version>1.2.2</jakarta.activation-api.version> <jakarta.activation-api.version>1.2.2</jakarta.activation-api.version>
<jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version> <jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version>
<jakarta.ejb-api.version>3.2.6</jakarta.ejb-api.version> <jakarta.ejb-api.version>3.2.6</jakarta.ejb-api.version>
@ -571,17 +571,13 @@
<!-- License: Apache 2.0 --> <!-- License: Apache 2.0 -->
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.airlift</groupId> <groupId>com.github.rvesse</groupId>
<artifactId>airline</artifactId> <artifactId>airline</artifactId>
<version>${airlift.version}</version> <version>${airline.version}</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>javax.inject</groupId> <groupId>com.github.rvesse</groupId>
<artifactId>javax.inject</artifactId> <artifactId>airline-backcompat-javaxinject</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
<!-- License: Apache 2.0 --> <!-- License: Apache 2.0 -->