Hi Shiv, there is no way to set custom property by using the artemis producer command. Another alternative to send messages from a shell is by using the jolokia endpoint but it should, i.e.
curl -X POST -H "Content-Type: application/json" -H "Origin: http://localhost:8161" -u admin:admin http://localhost:8161/console/jolokia -d '{"type":"exec","mbean":"org.apache.activemq.artemis:broker=\"0.0.0.0\",component=addresses,address=\"TEST\"","operation":"sendMessage(java.util.Map,int,java.lang.String,boolean,java.lang.String,java.lang.String)","arguments":["{\"test\":\"abc\"}",0,"TEST",false,"admin","admin"]}' Of course you can secure the jolokia endpoint and use mutual authentication in place of username/password, for further details see https://activemq.apache.org/components/artemis/documentation/latest/security.html#securing-the-console Regards, Domenico On Wed, 14 Feb 2024 at 12:56, Shiv Kumar Dixit <shivkumar.di...@it.eurofinseu.com.invalid> wrote: > Thanks Domenico for the quick response. > > If there a way to set some custom headers while sending the messages to > broker? I tried to get help (.\artemis.cmd help producer) on the CLI but I > don’t see any option. > > Best Regards > Shiv > > -----Original Message----- > From: Domenico Francesco Bruscino <bruscin...@gmail.com> > Sent: Monday, February 12, 2024 7:09 PM > To: users@activemq.apache.org > Subject: Re: PowerShell and STOMP Support > > > > CAUTION: EXTERNAL EMAIL - Sent from an email domain that is not formally > trusted by Eurofins. > > Do not click on links or open attachments unless you recognise the sender > and are certain that the content is safe. > > Hi Shiv, > > I confirm that the client needs to have the binary to execute artemis > producer and it supports certificate based authentication. i.e. > > .\bin\artemis producer --url > > 'tcp://localhost:61616?sslEnabled=true&keyStorePath=mykeystore.jks&keyStorePassword=***&trustStorePath=mytruststore.jks&trustStorePassword=***' > --protocol core --user admin --password admin --destination queue://TEST > --message-count 1 --message 'Hello World!' > > Regards, > Domenico > > On Mon, 12 Feb 2024 at 14:24, Shiv Kumar Dixit > <shivkumar.di...@it.eurofinseu.com.invalid> wrote: > > > Hi Domenico, > > Thanks for the response. > > > > Use-case is to send some status message to broker while executing an > > Octopus runbook. Client mentioned that they can call PS script hence I > > was exploring in that direction with STOMP. > > > > 'artemis producer .....' could be a good option but client needs to > > have the binary to execute this step, correct? > > > > Also if 'artemis producer ....' supports certificate based > > authentication as brokers only exposing SSL port over certificate > authentication? > > > > Best Regards > > Shiv > > > > -----Original Message----- > > From: Domenico Francesco Bruscino <bruscin...@gmail.com> > > Sent: Monday, February 12, 2024 5:56 PM > > To: users@activemq.apache.org > > Subject: Re: PowerShell and STOMP Support > > > > > > > > CAUTION: EXTERNAL EMAIL - Sent from an email domain that is not > > formally trusted by Eurofins. > > > > Do not click on links or open attachments unless you recognise the > > sender and are certain that the content is safe. > > > > Hi Shiv, > > > > for text messages you could use the artemis CLI, i.e. .\bin\artemis > > producer --url tcp://localhost:61616 --protocol core --user admin > > --password admin --destination queue://TEST --message-count 1 > > --message 'Hellow World!' > > > > Regards, > > Domenico > > > > > > On Mon, 12 Feb 2024 at 09:32, Shiv Kumar Dixit > > <shivkumar.di...@it.eurofinseu.com.invalid> wrote: > > > > > Hi, > > > I am exploring a way to securely (TLS) send/receive message to > > > Artemis broker via PowerShell. Previously I tried configuring REST > > > interface, but it was updated in community ticket that REST > > > interface is now decommissioned, and STOMP protocol is expected to > > > cover all the use cases intended for REST interface. > > > > > > If there is any example or KB available to use STOMP and PowerShell > > > together which I can refer? Currently I don't see any PowerShell > > > script sample included with Artemis distribution. > > > > > > Thanks > > > Shiv > > > > > > > > >