OpenWire | ActiveMQ free implementation of the OpenWire protocol
kandi X-RAY | OpenWire Summary
kandi X-RAY | OpenWire Summary
An ActiveMQ free implementation of the OpenWire protocol for use in interop scenarios. The goal of this project is to provide a simple OpenWire library that can be used to implement client’s and message brokers that can communicate with Apache ActiveMQ.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Write the boolean to the stream
- Overrides the superclass method to write the items to the stream
- Serializes a consumer instance to a stream
- Marshals a consumer instance to a stream
- Writes the given consumer info to the given stream
- Overrides the superclass method to write the boolean to the stream
- Marshals the given object to the given DataOutput
- Converts a command to a buffer
- Write the boolean flags to the stream
- Write the boolean representation of this consumer
- Unmarshals a connection info from a stream
- Unmarshals the connection info from the given stream
- Unmarshals an object from the stream
- Read a number of bytes from the stream
- Creates the wire format
- Compresses the content
- Read a long value from the stream
- Read an integer from the stream
- Read a double value from the stream
- Reads a string from the stream
- Renames wire format to the wire format
- Reads an object from the stream
- Read a short value from the stream
- Unmarshals an object from the given stream
- Generate the file
- Generate the source file
- Get the next scheduled time
OpenWire Key Features
OpenWire Examples and Code Snippets
Community Discussions
Trending Discussions on OpenWire
QUESTION
I've got two EC2 instances running Artemis in the master-slave replication setup and I always perform rolling upgrade by shutting down the slave, upgrading it and starting it again. Then I do the same with the master. This no longer works for me while upgrading from 2.17 to 2.18. After upgrading one of the nodes I always get this message on that node:
...ANSWER
Answered 2022-Apr-07 at 14:42This bug was introduced via ARTEMIS-3340. It should be fixed in the next release (i.e. 2.22.0). Until then there's no work-around unfortunately.
You may consider creating a completely separate new live/backup pair and then using a DNS update to direct clients from the old pair to the new pair.
QUESTION
Given simple configuration:
- Server - ActiveMQ
- Client1 - Producer. Sends messages using OPENWIRE protocol
- Client2 - Consumer. Receives messages using STOMP protocol
It works fine as long as we're using ActiveMQ 5.15.9. But it does not work with Artemis.
In Artemis GUI I can see, that OPENWIRE protocol uses multicast queue with the name VirtualTopic.Some.Topic.Name
and consumer with STOMP protocol uses multicast queue with the name /topic/VirtualTopic.Some.Topic.Name
.
And when Client1 (producer) sends a message, I can see this DEBUG
log entry:
ANSWER
Answered 2022-Feb-17 at 17:14I see you're using the /topic/
prefix for your STOMP consumer. I recommend you configure the appropriate anycastPrefix
and multicastPrefix
settings on the acceptor
which the STOMP client is using. These settings control the semantics used by the broker when auto-creating addresses & queues and when routing messages. For example:
QUESTION
I have ActiveMQ Artemis 2.8.1 running and get the following error when I try to connect to it using a Spring Boot application over SSL.
...ANSWER
Answered 2022-Feb-04 at 16:40There is definitely a problem with your configuration. The error message even says so:
QUESTION
We have multiple application servers in a cluster connecting to an instance of ActiveMQ Artemis 2.17.0. One of the applications will act as master and the remaining application servers will act as slave nodes.
The master will try to do drop the queue and recreates the queue before producing or consuming the messages as part of the data processing cycle.
Below is the exception stack we are observing in Artemis logs
...ANSWER
Answered 2022-Jan-12 at 19:27The broker is logging this WARN message (and not deleting the queue) because the queue you are trying to delete has consumers on it just as the WARN message indicates:
Cannot delete queue...it has consumers
You can avoid this either by not deleting the queue or removing all the consumers from that queue before deleting it.
In general it's not a good idea for clients to delete queues on the broker since queues are shared resources and may be used by other clients.
QUESTION
I am trying to setup a cluster of ActiveMQ, using static mode. I have for the moment only 2 instances. One is TE5021 / 192.165.20.21, with this configuration file (extract):
...ANSWER
Answered 2022-Jan-06 at 13:07Ok, here was the problem : I did setup the network connectors with duplex = true.
In my case, setting duplex = false, and broker attribute networkConnectorStartAsync to true was the solution.
QUESTION
I'm trying to migrate from ActiveMQ "Classic" to ActiveMQ Artemis.
We have a cluster of 2 active nodes that we try to migrate without impacting the consumers and producers. To do so, we stop the first node, migrate it, start it and do the same on the 2nd when the first is back up.
We are observing that the consumers/producers are not able to reconnect:
o.a.a.t.f.FailoverTransport | | Failed to connect to [tcp://172.17.233.92:63616?soTimeout=30000&soWriteTimeout=30000&keepAlive=true, tcp://172.17.233.93:63616?soTimeout=30000&soWriteTimeout=30000&keepAlive=true] after: 30 attempt(s) continuing to retry.
Consumers/producers are able to connect after we have restarted them. Is it normal behavior ?
Here is the ActiveMQ Artemis broker :
...ANSWER
Answered 2021-Dec-01 at 13:54This issue should due to updateClusterClientsOnRemove
, if true, will update clients when a cluster is removed from the network, see broker-side options for failover.
When the first node is stopped the clients will remove it and they will not add it again because the second node with ActiveMQ Classic isn't able to connect to the first node with ActiveMQ Artemis.
QUESTION
I'm trying to deploy ActiveMQ Artemis with Spring Boot and Docker. Artemis plus Spring Boot works fine. I'm using spring-boot-maven-plugin
to generate a fat jar. When I try to deploy that fat jar into Docker I see that acceptor is started:
AMQ221020: Started EPOLL Acceptor at localhost:61616 for protocols [CORE]
But I'm not able to connect to it from outside of Docker.
Exception in thread "main" ActiveMQConnectionTimedOutException[errorType=CONNECTION_TIMEDOUT message=AMQ119013: Timed out waiting to receive cluster topology. Group:null]
I'm using this command to run it into Docker:
...ANSWER
Answered 2021-Nov-18 at 09:44The connections are failing because the netty acceptor is listening on localhost so it can only accept connections from processes running on the same host/container.
To fix this issue the SpringBootExampleConfiguration should set the netty acceptor to listen on 0.0.0.0, i. e.
QUESTION
On my Windows machine I set up a local test cluster of 2 brokers (version 2.19.0): 1 master, 1 slave. The ha-policy is replication and cluster communicating goes over JGroups.
master broker.xml
:
ANSWER
Answered 2021-Nov-11 at 14:47I believe the problem is that you need reconnectAttempts
> 0
in your URL (e.g. reconnectAttempts=25
). The default value for reconnectAttempts
is 0
.
Also, if you didn't receive a topology update when you connected you'd see an ActiveMQConnectionTimedOutException
with a message like this:
QUESTION
I'm using JMS on a Spring boot client to connect to an ActiveMQ Artemis broker over SSL. The client is able to connect regardless of the validity of the certificates in the truststore and even if invalid credentials are used. How do I ensure that the broker is filtering clients out based on the configured parameters?
The acceptors
in the broker.xml
are defined as show below. The SSL acceptor uses port 61617
.
ANSWER
Answered 2021-Oct-14 at 14:36Here's what got things working.
Firstly, the login.config
file on Artemis has a GuestLoginModule
that this link says is chained to the PropertiesLoginModule
and the guest module allows clients without credentials, or even invalid credentials to connect to the broker. Now, by default, the GuestLoginModule
looks like this
QUESTION
I'm using ActiveMQ Artemis 2.18.0 and version 2.5.5 of the spring-boot-starter-artemis
dependency on a Spring Boot client. In my use case clients are required to communicate with each other via topics. The issue is that the string jms.topic.
is getting prefixed to every topic defined on the client. For example the topic foo.sendInfo
becomes jms.topic.foo.sendInfo
.
The broker.xml
file is as shown below. The acceptor
used by the Spring Boot client is the netty-ssl-acceptor
on port 61617
.
ANSWER
Answered 2021-Oct-13 at 08:24You have defined "anycastPrefix=jms.queue;multicastPrefix=jms.topic." in your SSL acceptor. You should remove them. Another solution is to setEnableAmq1Prefix to false on your connection factory (but i think this is the default value)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OpenWire
You can use OpenWire like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the OpenWire component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page