Hi Domenico,

you mean the documentation
https://activemq.apache.org/components/artemis/documentation/latest/using-server.html#options
is wrong at this point?

Best Regards 

Herbert



Von:    "Domenico Francesco Bruscino" <bruscin...@gmail.com>
An:     users@activemq.apache.org
Datum:  02.01.2024 15:51
Betreff:        [Ext] Re: no-acceptor options not understood



Hi Herbert,

there is no way to pass the list of the desired acceptor protocols to the
artemis create command.

You could use broker properties to overwrite it at runtime, i.e.
artemis create --java-options
'-DacceptorConfigurations.artemis.params.protocols=CORE,OPENWIRE'

Alternatively, you could use a shell tool like sed to replace the acceptor
protocols in the broker.xml, i.e.
sed -i '/acceptor name="artemis"/,/acceptor name="artemis"/
s/protocols=[^;]*/protocols=CORE,OPENWIRE/'  etc/broker.xml

Regards,
Domenico

On Tue, 2 Jan 2024 at 15:22, <herbert.helmstr...@systema.com> wrote:

> Hello Team,
>
> when creating an instance ofaremis broker 2.21.2 in the broker create
> script iI have defined
>
>         export ARGS="$ARGS --no-amqp-acceptor true"
>         export ARGS="$ARGS --no-hornetq-acceptor true"
>         export ARGS="$ARGS --no-mqtt-acceptor true"
>         export ARGS="$ARGS --no-stomp-acceptor true"
>
> since only core and openwire are currently needed. Expecting as a 
result::
>
>     <acceptor name="artemis"> ... ;protocols=CORE,OPENWIRE; ... 
</acceptor>
>
> But actually it gets in the broker.xml
>
>     <acceptor name="artemis"> ...
> ;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE; ... </acceptor>
>
> I have removed the "true" values, leaving the option names only, but the
> same result.
>
> Thank You in advance.
>
> Herbert
>
> ------------------------------
>
> *Herbert Helmstreit*
> Senior Software Engineer
>
> Phone: +49 941 / 7 83 92 36
> herbert.helmstr...@systema.com
>
> www.systema.com
>
> [image: LinkedIn] <https://www.linkedin.com/company/systema-gmbh/
>[image:
> Facebook] <https://de-de.facebook.com/SYSTEMA.automation/>[image: XING]
> <https://www.xing.com/pages/systemagmbh>
>
> SYSTEMA
> Systementwicklung Dipl.-Inf. Manfred Austen GmbH
>
> Manfred-von-Ardenne-Ring 6 | 01099 Dresden
> HRB 11256 Amtsgericht Dresden | USt.-ID DE 159 607 786
> Geschäftsführer: Manfred Austen, CEO und Dr. Ulf Martin, COO
>
> P Please check whether a printout of this e-mail is really necessary.
>
>




Reply via email to