Ok, I put back the "all protocols" acceptor and can get some output.

$ sudo ./artemis browser --destination queue://chat --verbose
Executing org.apache.activemq.artemis.cli.commands.messages.Browse browser
--destination queue://chat --verbose
Home::/opt/apache-artemis-2.14.0, Instance::/var/lib/testbroker
Connection brokerURL = tcp://localhost:61616
Consumer:: filter = null
Consumer ActiveMQQueue[chat], thread=0 trying to browse 1000 messages
Consumer ActiveMQQueue[chat], thread=0 browsing null
...ActiveMQMessage[null]:NON-PERSISTENT/ClientMessageImpl[messageID=2278,
durable=false,
address=chat,userID=null,properties=TypedProperties[destination=chat,content-length=4,JMSCorrelationID=NULL-value,_AMQ_CONTENT_TYPE=text/plain,JMSType=NULL-value]]
Consumer ActiveMQQueue[chat], thread=0 browsed: 1 messages
Consumer ActiveMQQueue[chat], thread=0 Browser thread finished

This is after I started my client, sent a message, while noone was
subscribed.
I assume the behavior is to leave it sit there forever, until someone comes
and picks it up.

Surely there is a limit how many the queue can hold. What happens then?

I will test the no acknowledgement scenario now.



On Wed, Aug 12, 2020 at 1:00 PM Christopher Pisz <christopherp...@gmail.com>
wrote:

> Exception in thread "main" javax.jms.JMSException: Failed to create
> session factory
>
> I had deleted all acceptors except the stomp acceptor from the
> configuration, yesterday. If it needs those acceptors to be defined, i
> don't remember what the default broker.xml looked like. I probably should
> have backed it up.
>
> On Wed, Aug 12, 2020 at 12:53 PM Justin Bertram <jbert...@apache.org>
> wrote:
>
>> > ws://<mymachinename>.<mydomainname>:61613
>>
>> That's an invalid URL for the Artemis CLI (as noted by the exception). You
>> need to use a URL like the one you used before for the "producer" command,
>> e.g.:
>>
>>   tcp://<yourmachinename>.<yourdomainname>:61616
>>
>>
>> Justin
>>
>> On Wed, Aug 12, 2020 at 11:48 AM Christopher Pisz <
>> christopherp...@gmail.com>
>> wrote:
>>
>> > ws://<mymachinename>.<mydomainname>:61613
>> >
>> > On Wed, Aug 12, 2020 at 12:22 PM Justin Bertram <jbert...@apache.org>
>> > wrote:
>> >
>> > > And the URL you're using?
>> > >
>> > >
>> > > Justin
>> > >
>> > > On Wed, Aug 12, 2020 at 11:18 AM Christopher Pisz <
>> > > christopherp...@gmail.com>
>> > > wrote:
>> > >
>> > > >  sudo ./artemis browser --destination queue://chat --verbose
>> > > >
>> > > > On Wed, Aug 12, 2020 at 12:12 PM Justin Bertram <
>> jbert...@apache.org>
>> > > > wrote:
>> > > >
>> > > > > What's the exact command you're using?
>> > > > >
>> > > > >
>> > > > > Justin
>> > > > >
>> > > > > On Wed, Aug 12, 2020 at 11:05 AM Christopher Pisz <
>> > > > > christopherp...@gmail.com>
>> > > > > wrote:
>> > > > >
>> > > > > > When I try that, I type in the same url I use to connect
>> including
>> > > the
>> > > > > > :<port>, the username and password i created the instance with,
>> and
>> > > it
>> > > > > > tells me java.lang.RuntimeException:
>> > java.lang.NullPointerException:
>> > > > > Schema
>> > > > > > hansel04.alertinnovation.com not found
>> > > > > >
>> > > > > > On Tue, Aug 11, 2020 at 2:29 PM Justin Bertram <
>> > jbert...@apache.org>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > You can use the "browser" command which is part of the
>> ActiveMQ
>> > > > Artemis
>> > > > > > > CLI, e.g.:
>> > > > > > >
>> > > > > > >   > cd <ACTIVEMQ_ARTEMIS_INSTANCE>/bin
>> > > > > > >   > ./artemis browser --destination queue://myQueue --verbose
>> > > > > > >
>> > > > > > >
>> > > > > > > Justin
>> > > > > > >
>> > > > > > > On Tue, Aug 11, 2020 at 1:20 PM Christopher Pisz <
>> > > > > > > christopherp...@gmail.com>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > > > Unfortunately when I try to forward x over ssh and bring up
>> > > > Firefox,
>> > > > > it
>> > > > > > > is
>> > > > > > > > nearly completely unresponsive. Is there another way that
>> > doesn't
>> > > > > > > require a
>> > > > > > > > browser?
>> > > > > > > >
>> > > > > > > > On Tue, Aug 11, 2020, 12:49 Justin Bertram <
>> > jbert...@apache.org>
>> > > > > > wrote:
>> > > > > > > >
>> > > > > > > > > > How can I get a message to be "journaled?"
>> > > > > > > > >
>> > > > > > > > > A message which is stored in the journal is a
>> "persistent" or
>> > > > > > "durable"
>> > > > > > > > > message. Every API and protocol handles this in a
>> different
>> > but
>> > > > > > similar
>> > > > > > > > > way. If you're using STOMP and you want your message to be
>> > > stored
>> > > > > in
>> > > > > > > the
>> > > > > > > > > journal then set the "persistent" header to "true".
>> > > > > > > > >
>> > > > > > > > > > How can I get a message into the DLQ?
>> > > > > > > > >
>> > > > > > > > > First you have to configure the proper settings to send
>> > > messages
>> > > > > to a
>> > > > > > > DLA
>> > > > > > > > > when they fail delivery a certain number of times. Refer
>> to
>> > the
>> > > > > docs
>> > > > > > > [1]
>> > > > > > > > on
>> > > > > > > > > how to do that. Then the message has to fail delivery the
>> > > > > configured
>> > > > > > > > number
>> > > > > > > > > of times. A failed delivery could occur if, for example, a
>> > > client
>> > > > > > > > receives
>> > > > > > > > > a message, fails to acknowledge the message, and then the
>> > > client
>> > > > > > closes
>> > > > > > > > its
>> > > > > > > > > connection.
>> > > > > > > > >
>> > > > > > > > > > How can I, as an admin, view those messages?
>> > > > > > > > >
>> > > > > > > > > Use the web console.
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > Justin
>> > > > > > > > >
>> > > > > > > > > [1]
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> http://activemq.apache.org/components/artemis/documentation/latest/undelivered-messages.html
>> > > > > > > > >
>> > > > > > > > > On Tue, Aug 11, 2020 at 12:04 PM Christopher Pisz <
>> > > > > > > > > christopherp...@gmail.com>
>> > > > > > > > > wrote:
>> > > > > > > > >
>> > > > > > > > > > I got my activemq instance up and have a stomp acceptor
>> > > > working.
>> > > > > My
>> > > > > > > > > client
>> > > > > > > > > > connects and I can subscribe and send messages.
>> > > > > > > > > >
>> > > > > > > > > > I have been reading the docs for days. I still don't
>> > > understand
>> > > > > the
>> > > > > > > > > > journals, dead letter queue etc.
>> > > > > > > > > >
>> > > > > > > > > > Can someone walk me through
>> > > > > > > > > > How can I get a message to be "journaled?"
>> > > > > > > > > > How can I get a message into the DLQ?
>> > > > > > > > > > How can I, as an admin, view those messages?
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>

Reply via email to