[
https://issues.apache.org/jira/browse/ARTEMIS-4689?focusedWorklogId=909953&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-909953
]
ASF GitHub Bot logged work on ARTEMIS-4689:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 14/Mar/24 17:41
Start Date: 14/Mar/24 17:41
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on code in PR #4855:
URL: https://github.com/apache/activemq-artemis/pull/4855#discussion_r1525277290
##########
artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataImporter.java:
##########
@@ -90,10 +91,12 @@ public final class XmlDataImporter extends ActionAbstract {
private ClientSession session;
private ClientProducer producer;
- @Option(names = "--host", description = "The host used to import the data.
Default: localhost.")
- public String host = "localhost";
+ @Deprecated(forRemoval = true)
+ @Option(names = "--host", description = "The host used to import the data.
Default: null. Deprecated! Use 'url' instead.")
+ public String host = null;
- @Option(names = "--port", description = "The port used to import the data.
Default: 61616.")
+ @Deprecated(forRemoval = true)
+ @Option(names = "--port", description = "The port used to import the data.
Default: 61616. Deprecated! Use 'url' instead.")
Review Comment:
eg:
https://github.com/apache/activemq-artemis/blob/7742936583d48e179f67c7d73b7b49cbe83731d5/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/DestAbstract.java#L41-L42
if you have a script showing the older parameters, it should work fine, but
it will prevent users from discovering the deprecated term.
it is the best approach on the CLI.. hidden=true
Issue Time Tracking
-------------------
Worklog Id: (was: 909953)
Time Spent: 0.5h (was: 20m)
> Import command should accept URL
> --------------------------------
>
> Key: ARTEMIS-4689
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4689
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Currently the import command only takes host & port with regard to its
> connection to the broker. It should take a URL instead so that the connection
> can be configured appropriately for more use-cases (e.g. using TLS).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)