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
1 answer

Subscriber authorisation in WebSphere MQ with MDB

I have an MDB that looks like this: @MessageDriven(mappedName = "jms/TestJeremyTopic ", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), …
Synesso
  • 37,610
  • 35
  • 136
  • 207
1
vote
0 answers

IBM MQ - MDB Redelivery Delay configuration

I am trying to consume message from WebSphere MQ using MDB and configured in ejb-jar.xml . am using below mentioned tech stack. I need to add redelivery delay option in my MDB activation config.…
Gnana
  • 2,130
  • 5
  • 26
  • 57
1
vote
1 answer

Sending JavaMail via EJB Message Driven Bean

Good day ALL, I'm having issues while sending an email notification from an MDB onMessage method after a new user signup. I'm using a Queue The problem is that the messageListener keeps resending every message in the queue, and this result in an…
1
vote
3 answers

jBoss deployment of message-driven bean spec violation

I have an java EE application which has one message-driven bean and it runs fine on JBoss 4, however when I configure the project for JBoss 6 and deploy on it, I get this error; WARN [org.jboss.ejb.deployers.EjbDeployer.verifier] EJB spec…
rapadura
  • 5,242
  • 7
  • 39
  • 57
1
vote
1 answer

Pipes and filters pattern with MDB in Java EE

I'm trying to implement the pipes and filters pattern with Message-Driven Beans in Java EE, but I want to do it in a way that the queues are configurable and the beans are created on run time. This way changing the order in which the filters execute…
moondaisy
  • 4,303
  • 6
  • 41
  • 70
1
vote
1 answer

MDB onMessage() holds the connection in case of redelivering message

I need to redeliver a message if it can't be processed, for example because of some external endpoint failure. So I'm using following MDB configuration (it worth to mention that I'm using openMQ (Glassfish 4.1)): @MessageDriven(mappedName =…
sanpwc
  • 43
  • 1
  • 10
1
vote
0 answers

I'm migrating a J2EE app from JBoss to Websphere

I'm migrating a J2EE app from JBoss to Websphere. It was written about 15 years ago by folks who are no longer with our company. It's written using EJB 2.0 technology (moving it to 3.0 isn't currently on the radar). I'm currently struggling with…
S. Byrd
  • 11
  • 3
1
vote
2 answers

multiple MDB listeners reading on same queue

I have a requirement to implement multiple MDB listeners listening to a single queue. As the load on the queue increases, one listener is not enough to handle that load. I would like to know the best way what we can do to achieve this? a. I can…
V Joe
  • 271
  • 1
  • 5
  • 23
1
vote
1 answer

Too many mq connections for a server connection channel which are not created by queue

As per our configuration, we have WAS version is 8.5.5.11, IBM MQ version 7.5.0.3. We are using 2 channels to connect to WMQ, one with MAXINST set to 250 and one with 500. SHARECNV is set to 10 for both. Now we have an upper limit of making maximum…
Neel
  • 199
  • 3
  • 18
1
vote
1 answer

Same MDB instance for similar messages

I have a queue on Wildfly 8.2 (JMS with default HornetQ) which receives messages relative to different entities with different MDB Classes as consumers (one MDB Class for each Entity). I use The JMSType to send messages relative to Entity A to the…
Wallkan
  • 480
  • 1
  • 8
  • 27
1
vote
1 answer

Unable to establish connection with QMGR - MQRC '2278' ('MQRC_CLIENT_CONN_ERROR')

I have deployed couple of applications on WAS 8.5.5 Base version. These applications need to communicate with MQ to produce and consume messages. I have created a SVRCONN channel and respective CLNTCONN as well. I am trying to connect to MQ using…
AnilReddy
  • 212
  • 2
  • 13
1
vote
2 answers

ActiveMQ consumer execution delay

I'm seeing a problem where a Queue is not backed up however the time for the consumer to actually execute the JMS message is between 100 - 200 seconds from creation (as measured via the JMSTimestamp-CurrentTime). The flow was fairly low to the…
Jeremy
  • 2,870
  • 3
  • 23
  • 31
1
vote
1 answer

Container Managed Transactions and Session.AUTO_ACKNOWLEDGE

In the The Java EE 6 Tutorial, Chapter 17 A Message-Driven Bean Example , I came across this: @MessageDriven(mappedName="jms/Queue", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", …
mambolis
  • 173
  • 3
  • 6
1
vote
3 answers

Synchronizing access to a MDB method across instances

I have an Message Driven Bean, which receives Audit messages. These messages also have information about the system being audited. When a message is received, the MDB can create the system if it does not exists or reuse an existing system. My…
n002213f
  • 7,805
  • 13
  • 69
  • 105
1
vote
3 answers

MDB starts to consume messages before fully initialization of JNDI names

AS: Websphere 8.5.5 MQ impl: SIB During application startup MDB starts to invoke onMessage method, which in turn invokes initialContext.lookup in order to find specific bean. Sometimes (during variety of startup iterations) it returns null instead…
uptoyou
  • 1,427
  • 19
  • 24