Re: Artemis (JBoss EAP 7) to HornetQ (EAP 6) elaboration on RedHat example
This looks more like an application server issue than a message broker
issue (whether that's ActiveMQ Artemis or HornetQ). If you could (mostly)
eliminate the application server from the picture and narrow down your
question to just the broker and/or broker client you may get some help on
this list otherwise I think your best bet is the application server forum.
On Tue, Aug 7, 2018 at 12:22 PM, JGlass <jason.glass@xxxxxxxxxxxx> wrote:
> Hi All!
> I posted a question in the JBoss forums:
> But thought I might get a little quicker help here. The problem I am
> and trying to solve is that as per that article I had originally gone the
> route of trying to bundle the JBoss EAP 6 related libraries with the EJB
> application and specifying the following in the EAR
> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
> <subsystem name="messaging-activemq"></subsystem>
> <module name="javax.jms.api"></module>
> <module name="org.jboss.ejb"></module>
> <module name="org.jboss.as.remoting"></module>
> Which works on initial deployment however when I restart the server I get
> the following exception when trying to send a JMS message so it appears
> the jboss-deployment-structure isn't always being honored. I also end up
> getting that exception at random intervals (a day, days or weeks later) and
> when it occurs all future JMS messages fail to be sent almost as if JBoss
> forgets the application is supposed to be using its own libraries.
> Caused by: java.lang.LinkageError: loader constraint violation: when
> resolving method
> the class loader (instance of org/jboss/modules/ModuleClassLoader) of the
> current class,
> org/jboss/naming/remote/client/ejb/RemoteNamingStoreEJBClientHandler, and
> the class loader (instance of org/jboss/modules/ModuleClassLoader) for the
> method's defining class, org/jboss/ejb/client/EJBClientContext, have
> different Class objects for the type org/jboss/remoting3/Connection used in
> the signature
> So as per that same forum post, I'm now trying to use Red Hats overly
> simplified (at least to me) example here:
> But since I was using JNDI - I'm really confused as to how to setup the
> connection factory and queue - does anyone by chance have a working
> I can add all the code after I clean it up a bit if it helps!
> Thank you!
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-