RE: Missing methods for ActiveMQBytesMessage

2020-02-26 Thread Justin Taylor
That did the trick. By converting the sample code to Java I was able to see what it was doing. It was defining the message variable as javax.jms.Message which doesn't have the correct methods. When I explicitly defined/cast the message as ActiveMQBytesMessage then it worked. Thanks -O

Federation using Bi-Directional/Duplex between Artemis brokers

2020-02-26 Thread satees kumar kapu
We are trying to implement a hub and spoke topology using the Federation feature by configuring both upstream and downstream connections. In our case, we wanted to configure everything that is needed for the federation on the broker which is acting as spoke. This is mainly done this way as our ma

Re: Artemis JMX connection

2020-02-26 Thread Jonathan Gallimore
> -Djava.rmi.server.hostname=localhost Aha! That did the trick. Thank you! Jon On Wed, Feb 26, 2020 at 5:43 PM Justin Bertram wrote: > One of the things that the JMX example does is set this system property via > pom.xml [1]: > > -Djava.rmi.server.hostname=localhost > > This system propert

Re: Artemis JMX connection

2020-02-26 Thread Justin Bertram
One of the things that the JMX example does is set this system property via pom.xml [1]: -Djava.rmi.server.hostname=localhost This system property is referenced in the Management documentation in the section titled "Configuring remote JMX Access" [2] which states: It is important to note tha

Re: Artemis JMX connection

2020-02-26 Thread Gary Tully
I gave that a whirl on a new build today. I added a user during artemis create.. and I used that identity with the insecure jconsole connection using service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi providing user/password credentials the mbean server has an authenticator that delegates to jaas

Re: Missing methods for ActiveMQBytesMessage

2020-02-26 Thread Justin Bertram
What happens if you receive the message in a Java client? Do you see the expected methods? What JavaDocs are you looking at for reference? FWIW, the code for the 5.7.0 version of ActiveMQBytesMessage is here [1]. Justin [1] https://github.com/apache/activemq/blob/activemq-5.7.0/activemq-core/s

Missing methods for ActiveMQBytesMessage

2020-02-26 Thread Justin Taylor
This doesn't make any sense, and I'm sure I have to be doing something wrong. I'm trying to consume a message from a queue. I'm using the 5.7.0 activemq-core JAR from Maven. I'm getting an ActiveMQBytesMessage object back. It seems that none of the methods for that class listed in the JavaDoc

Artemis JMX connection

2020-02-26 Thread Jonathan Gallimore
Hi folks Apologies for a rookie question... I have Artemis setup on my local machine, and have enabled the JMX connector in management.xml: I don't seem to be able to connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. I've tried looking at the jmx example and adding a guest role -