RE: Looking for guidance on conversion from embedded activemq to artemis

2023-01-14 Thread John Lilley
Of course, but who reads the spec before coding?  I appreciate the Artemis is more compliant with and enforcing of the spec than AMQ 5 was. Because now I don’t have to read it! john [rg] John Lilley Data Management Chief Architect, Redpoint Global Inc.

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Michael Brennock
We're using a build.gradle file actually. Personally, I'd like to move the dependencies to a pom.xml file, but that'll come later On Wed, Jan 11, 2023, 12:31 PM Justin Bertram wrote: > I was under the impression that Gradle understood Maven pom files so that > if your project depended on

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Justin Bertram
I was under the impression that Gradle understood Maven pom files so that if your project depended on org.apache.activemq:artemis-server it would get all the transitive dependencies like commons-beanutils:commons-beanutils. Is that not the case? Justin On Wed, Jan 11, 2023 at 2:14 PM Michael

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Michael Brennock
Ah, that explains why it's missing. We're using Gradle on this project to import dependencies. I'll add that dependency as well On Wed, Jan 11, 2023, 12:06 PM Justin Bertram wrote: > Looks like you need commons-beanutils:commons-beanutils:1.9.4 [1]. This > dependency is declared in the

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Justin Bertram
Looks like you need commons-beanutils:commons-beanutils:1.9.4 [1]. This dependency is declared in the artemis-server [2] module so you should get it automatically if you're using Maven to manage your dependencies. Justin [1]

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Michael Brennock
John, I appreciate your suggestions! I will try to put them to work today. Perhaps they can help me resolve a runtime error I'm getting from embeddedActiveMQ.start()? the stacktrace looks something like this: [23-Jan-10 14:16:50:330] [INFO] [BrokerInitializer:197] - Embedded Artemis Broker being

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread Justin Bertram
> In particular, AMQ 5 let's you create several objects off the same Session and use them concurrently... For what it's worth, the JMS specification states that Session objects are *not* thread-safe so any concurrent use is a spec violation. You may find implementations where concurrent use

RE: Looking for guidance on conversion from embedded activemq to artemis

2023-01-11 Thread John Lilley
Michael, I am also not familiar with "activemq-broker-initializer", and do not see any documentation for it online. I suspect that this is a custom Spring factory bean that those who came before you created. Because Spring is limited to creating objects and setting properties, such a thing is

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-10 Thread Justin Bertram
> I'm perfectly happy to update this to the Artemis configuration file method instead You'd replace: BrokerFactory.createBroker() With something like: new EmbeddedActiveMQ(); This assumes there's a valid broker.xml configuration on your classpath. If your broker.xml isn't on the classpath

RE: Looking for guidance on conversion from embedded activemq to artemis

2023-01-10 Thread John Lilley
Michael, We have recently migrated from AMQ 5 to Artemis, and we used embedded brokers for testing, so I might be able to help. Jolokia (web service API) is not available in the embedded brokers, we migrated to using the queue-based management API instead for things like queue counts and

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-06 Thread Michael Brennock
Thank you for your feedback Justin. I will be more specific in my descriptions. - First, the activeMQ application creates an instance of BrokerService from BrokerFactory.createBroker(), with a activemq-config.xml for its argument - Next, the queues themselves are loaded one at a time

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-06 Thread Justin Bertram
There's just not enough detail in what you've stated to provide any concrete help with your migration. You said, "...it looks like BrokerService is used throughout the application," but you've provided no details about _how_ BrokerService is used. Most applications using an embedded broker are

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-06 Thread Michael Brennock
Thanks for the quick reply! For a more specific question, it looks like BrokerService is used throughout the application, as well as the active-mq-initializer bean from activeMQ. To clarify, I inherited this project from other developers who are long gone. I started working on this because I

Re: Looking for guidance on conversion from embedded activemq to artemis

2023-01-05 Thread Justin Bertram
EmbeddedActiveMQ is the class you want to use for embedding ActiveMQ Artemis. The BrokerService is a class from ActiveMQ "Classic". It is used in the ActiveMQ Artemis code-base only for testing purposes. You won't use it at all when migrating. For additional help you'll have to ask more specific