Questions tagged [message-driven-bean]

A message-driven bean is an enterprise bean that allows J2EE/Java EE applications to process messages asynchronously.

A message-driven bean is an enterprise bean that allows J2EE/Java EE applications to process messages asynchronously. It acts as a JMS message listener, which is similar to an event listener except that it receives messages instead of events. The messages may be sent by any J2EE/Java EE component, or by a JMS application, or a system that does not use Java technology at all.

Resources:

438 questions
1
vote
2 answers

Implementing Hornetq

I need some clarity on the right approach of implementing JMS in our system. Currently we have two JBoss servers in load-balanced for end user transaction purpose, we are extending the notification features based on various event in the transaction.…
vairam
  • 471
  • 1
  • 11
  • 26
1
vote
0 answers

Getting "does not implement 1 interface nor specifies message listener interface" error for non message driven bean

This is my first time posting. Apologies if I have not followed the rules/standards/procedures. The problem I have is the following: I have the following stateless bean defined: @Stateless(name = "ReportQueueSenderBean", mappedName =…
Vick
  • 11
  • 2
1
vote
1 answer

Having a message driven bean 'fire' as the result of two events?

I would like to have an MDB that fires only after two independent states have been reached. For example: Event A occurs some time passes Event B occurs MDB onMessage is called as a result of both A and B event occurring A and B events are cleared So…
NBW
  • 1,467
  • 2
  • 18
  • 27
1
vote
1 answer

Cache values in Java EE

I'm building a simple message delegation application. Messages are being send on both ends via JMS. I'm using a MDB to process incoming messages, transform them and send them to a target queue. Unfortunately the same messages can be send to the…
Leikingo
  • 890
  • 3
  • 10
  • 23
1
vote
1 answer

Deploying an MDB to listen to Kafka on Wildfly erros: WFLYEJB0383: No message listener of type fish.pay....KafkaListener found in resource adapter

I am trying to use the [JCA resoruce-adapters][1] to use an MDB to connect to kafka. Following are the entries in the standalone-full.xml to configure the kafka resoruce adapter and the related ejb-mdb definition : Note that the i have deploying…
1
vote
0 answers

Using Quartz Jobs With Message Driven Bean

I'm working on migrating a project from Jboss AS6 to Wildfly 18 and I'm running into some issues with message driven beans. I tried following the example here:…
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
1
vote
1 answer

Which MDB listens on a Queue

How can I tell which MDB is listening to a specific Queue, given the queue's name ? Thank you.
Sergiu
  • 2,502
  • 6
  • 35
  • 57
1
vote
1 answer

Enable/disable loading of MDBs OR ignore deployment error if MDB cannot connect to the server

[environment: java ee 6, jms 1.1, wildfly 10, wmq 9] I have to set up 9 Message Driven Beans that listen to different topics on 3 different servers: 1 Topic in DEV 4 in PROD 4 in TEST (one for each in PROD) The problem is that the topics are…
djobbagy
  • 25
  • 4
1
vote
1 answer

How to map a websphere mq 7 queue to a EJB 3 destinationName

I need to map WebSphere MQ7 queue (Say queA in Queue Manager QMA) to a EJB3 MDB. I created the MQ Queue Manager and Queue using crtmqm QMA and start it using strmqm MQA Then i wrote a file file name QMA.conf and included DEFINE QLOCAL ('queA') line…
Asanga
  • 11
  • 1
  • 2
1
vote
1 answer

Weblogic MDB instances becomes zero and messages in the Queue are not picked up

I have a MDB reading from a MQ Queue through local binding. Sometimes we notice that the messages from the MQ Queue is not picked up Queue depth increases to 50000 and the number of instances become zero. Total number of execute threads is 25. There…
Kannan
  • 11
  • 1
1
vote
1 answer

Spring Integration and Tomcat solution vs Websphere MDB solution: functionality?

We're looking at the choice between implementing an enterprise integration solution in either: Spring/Spring Integration/JMS/Spring Web MVC Websphere Application Server/MDB/Spring What are the pros/cons? Especially interested in what WAS/MDB…
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
1
vote
1 answer

Add CDI decorator to Message Driven Bean

Given the following Message Driven Bean, is it possible to define a global decorator from the CDI specification to add additional behaviour? @MessageDriven public class MyMessageDrivenBean implements MessageListener { @Override public void…
Glains
  • 2,773
  • 3
  • 16
  • 30
1
vote
1 answer

Prevent external reference for XSDs on WebLogic server

I have an app that uses a spring-config-messaging-rollup.xml config. When deploying to weblogic, there is the following sequence of errors in the log file: Stack trace associated with message Error in starting the MDB MyMessageConsumerEJB…
Robert Ngetich
  • 1,114
  • 2
  • 11
  • 22
1
vote
2 answers

Are Message-Driven Beans (MDB) bound to the same restrictions as other EJB beans?

In a Message-Driven Bean am I restricted to the same rules of Session Beans (EJB3 or EJB3.1), i.e: use the java.lang.reflect Java Reflection API to access information unavailable by way of the security rules of the Java runtime environment read or…
1
vote
1 answer

Why JBoss create only one ActiveMQ consumer?

Why JBoss EAP 7 create only one consumer with Active MQ(not Artemis)? How to increase number of consumer? I've tried: increase maxSession ActivationConfigProperty increase mdb pool size (via bean-instance-pools tag) set min/max pool size inside…