artemis-server | A GraphQL enabled server seed | GraphQL library
kandi X-RAY | artemis-server Summary
kandi X-RAY | artemis-server Summary
A GraphQL-enabled server seed. The Artemis Server is a server seed for many of my upcoming projects, it allows a developer to expose a GraphQL interface to the client, significantly improving server performance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build a list of link filters
artemis-server Key Features
artemis-server Examples and Code Snippets
Community Discussions
Trending Discussions on artemis-server
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
I have messages in ACS01 queue which was pushed using stomp library in python3, which is working fine, but when I try to browse same message in artemis activemq console, I am getting below error in logs:
...ANSWER
Answered 2022-Mar-28 at 15:26There is a bug which prevents browsing messages when one of the messages in the queue contains a null
property value. In this case the broker itself is setting the null
property value by mistake. You'll need to upgrade to ActiveMQ Artemis 2.21.0 once it is available as it will contain the fixes for ARTEMIS-3677 and ARTEMIS-3696. It just passed the release vote so it should be available on the website for download in the next few days. To be clear, the only problem here is with browsing the messages. You should be able to consume the message no problem.
When you push a message to the queue via the web console the core protocol is used (i.e. not STOMP) which is why you can browse successfully.
QUESTION
In my testing and review of the Artemis LastValueQueue code, it looks like the scheduling delay for a message takes precedence over its evaluation of the "last-value-key". In other words, if you schedule a message, it is only evaluated for replacing the last-value in the queue at the time it is prepared for delivery.
My question is whether I have correctly understood the code, and if so, if there's a workaround or a feature of ActiveMQ / Artemis that might help meet our requirements.
Our requirements are as follows:
- Generate a message, and delay processing of that message to a point in the future (usually 30 seconds out).
- If an updated version of the message is generated due to a new external event, replace any existing scheduled message with the new version of the message - the scheduled delivery time should also be updated, in addition to the message payload.
Some other notes:
- My current prototype is using Artemis embedded server
- Spring-jms JmsTemplate is being used to produce messages
- Spring-jms JmsListenerContainerFactory is being used to consume messages
- We don't currently use SpringBoot, so you'll see some bean setup below.
ArtemisConfig.java:
...ANSWER
Answered 2022-Feb-09 at 16:02Your understanding about the semantics of scheduled messages with a last-value queue is correct. When a message is scheduled it is not technically on the queue yet. It is not put onto the queue until the scheduled time arrives at which point last-value queue semantics are enforced.
Short of implementing a new feature I don't see how you can implement your desired behavior in any kind of automatic way. My recommendation at this point would be to use the management API (i.e. QueueControl
) to manually remove the "old" scheduled message before you send the "new" scheduled message. You can use one of the removeMessage
methods for this as they will work on scheduled messages and non-scheduled messages alike.
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
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
If I create queues on ActiveMQ Artemis test.A
and a wildcard queue test.#
then I can send a message to test.A
and it will also be delivered to test.#
. However, I am surprised to learn that when I consume the message from test.#
then the message is still present on test.A
How can I change my code or configuration to get the expected behavior?
Example code:
...ANSWER
Answered 2021-Sep-24 at 14:54What you are seeing is the expected behavior. The key thing to keep in mind here is that you're leveraging wildcard routing and not wildcard consuming. With wildcard routing messages are not only routed to the queues of the address where the message is explicitly sent but also to any queues on matching wildcard addresses. Each queue to which the message is routed has its own copy of the message.
Wildcard routing was implemented with multicast (i.e. pub/sub) use-cases in mind (e.g. hierarchical topics), but there are a few options if you want to use it with anycast:
- Accept the semantics as-is.
- Create the address
test.A
without a queue, e.g.:
QUESTION
I have Spring Boot application that includes an embedded ActiveMQ Artemis and Camel. This uses the following ActiveMQ dependency:
...ANSWER
Answered 2021-Sep-09 at 02:37The ActiveMQ plugin shipped with Hawtio is for the ActiveMQ "Classic" broker, not ActiveMQ Artemis. Therefore, it won't detect the embedded instance of ActiveMQ Artemis.
ActiveMQ Artemis itself has a Hawtio plugin consisting of three parts:
- artemis-console (rename as
console.war
) - artemis-plugin (rename as
artemis-plugin.war
) - activemq-branding (rename as
activemq-branding.war
)
You could download those war files and deploy them in your web application server (assuming you have one). I've done this on Wildfly 24 and it worked fine once I relaxed security on the remote ActiveMQ Artemis instance (allowing "guest" users and disabling CORS in jolokia-access.xml
). Of course, in production you'll want to sort out the security issues, but this should get you moving in the right direction.
QUESTION
In installed Artemis broker logging.properties
, i have included below configuration to setup log rotate
ANSWER
Answered 2021-Sep-07 at 19:40There's a handful of problems with your configuration.
- If you want to use both time & size based rotation you need to use
org.jboss.logmanager.handlers.PeriodicSizeRotatingFileHandler
. Currently you're usingorg.jboss.logmanager.handlers.PeriodicRotatingFileHandler
which will only rotate based on time. - You're formatting your rotation config properties incorrectly. You're using
-
characters when you should be using camel case like the rest of the properties. I believe this is because you're reading the documentation from JBoss EAP which has a slightly different configuration format than the plain properties-based configuration used by ActiveMQ Artemis. - You aren't specifying the rotation config properties in the
properties
configuration for theFILE
handler
. - You're using the size notation
k
which isn't supported in the plain properties-based configuration used by ActiveMQ Artemis.
Try using this instead:
QUESTION
I have an embedded ActiveMQ Artemis application that I have started using below configuration & code:
broker.xml
ANSWER
Answered 2021-Aug-16 at 11:16This is the only acceptor
you have:
QUESTION
When I run ActiveMQ Artemis in docker I see this basically empty screen:
That doesn't look right... I was expecting this, like I get when using the zip file:
Regardless of whether I use docker or the zip file, it doesn't matter what username or password I enter, I just get logged in regardless, which is a little concerning...
What am I doing wrong?
Longer VersionI'm attempting a "Hello World" style installation of ActiveMQ. It sounds like ActiveMQ Artemis is what I should be using. We'll be using this on Kubernetes, so I found and have followed https://artemiscloud.io/. There is a Quickly deploy a basic Container image that runs the broker right there on the front page. It suggests:
...ANSWER
Answered 2021-May-28 at 14:35The ArtemisCloud container image for ActiveMQ Artemis is designed to run inside a container so the container IP address should be used to access to the console or to other resources.
The container IP address can be obtained by using the command docker inspect
or by reading the container log, ie:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install artemis-server
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