This content has been marked as final.
Show 2 replies
-
1. Re: Is there a way to use message listeners and message driven beans together?
jbertram Dec 10, 2015 9:44 AM (in response to john.sanda)Don't remove any pooled-connection-factory, but simply change your application code to use a non-pooled connection factory (e.g. the one at "java:/ConnectionFactory").
Also, I believe Wildfly supports dynamically starting/stopping MDBs so you could go that route as well.
-
2. Re: Is there a way to use message listeners and message driven beans together?
john.sanda Dec 10, 2015 1:56 PM (in response to jbertram)I had created a non-pooled connection factory bus I was missing a change in my code. I had
@Resource(name = "java:/MyConnectionFactory") ConnectionFactory connectionFactory;
and needed to change to,
@Resource(lookup = "java:/MyConnectionFactory") ConnectionFactory connectionFactory;