Skip to content

Instantly share code, notes, and snippets.

@ipolevoy
Last active March 20, 2020 01:34
Show Gist options
  • Save ipolevoy/d2a36b00444afcfdad18d74fdcd659d9 to your computer and use it in GitHub Desktop.
Save ipolevoy/d2a36b00444afcfdad18d74fdcd659d9 to your computer and use it in GitHub Desktop.
Artemis Queue Creation
... create a Coinfiguration object
CoreQueueConfiguration coreQueueConfiguration = new CoreQueueConfiguration();
coreQueueConfiguration.setName(QUEUE_NAME).setDurable(true);
configuration.addQueueConfiguration(coreQueueConfiguration);
server = new EmbeddedActiveMQ();
server.setConfiguration(configuration);
server.start();
...
Queue jmsQueue = jmsSession.createQueue(QUEUE_NAME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment