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
0
votes
0 answers

JMS Message Driven Beans

What is the practical (real world) usage of below Annotations for MDB (Message Driven Beans) I am wondering if any real enterprise application would ever use these annotations as topic/queue names would vary by deployment and should be a…
Suyog Barve
  • 237
  • 3
  • 10
0
votes
1 answer

Configuring MDB (on Glassfish) to listen to a shared topic subscription

What I am looking for is the exact activation configuration property name in order to configure a Message Driven Bean to accept messages from a JMS Topic in Shared subscription mode @MessageDriven(activationConfig = { …
Abhishek
  • 1,175
  • 1
  • 11
  • 21
0
votes
2 answers

Weblogic how to have only one instance/thread of Message driven bean

In Weblogic 12c, how can I have only one instance/thread of Message driven bean. I can't find the equivalent annotation attribute for "max-beans-in-free-pool" as defined here…
Jay
  • 9,189
  • 12
  • 56
  • 96
0
votes
0 answers

WildFly 10.1.0 remote connection to Standalone ActiveMQ

I'm trying to configure WildFly 10.1.0 to use MDB's with context of the remote ActiveMQ server. Problem occures when trying to use injected remote JMSContext - naming exception(looking for transaction). Steps I did: WildFly standalone-full.xml…
AndreyB
  • 55
  • 10
0
votes
1 answer

MessageDriven app doesnot start due to JMS resources on IBM WAS

I built a simple MDB application which listens a jms.Queue, had deployed it on IBM WAS 8.5.5 (with IBM MQ as a JMS broker) and when trying to start it I received the following error (sorry for cyrillic symbols, tried to translate closely): …
a.parfenov
  • 528
  • 6
  • 16
0
votes
1 answer

EJB 3.0 MDB on Websphere, how to configure the thread pool

I am using an EJB 3.0 MDB to read messages asynchronously from a MQ queue. This MDB is packaged as a jar and imported as a dependency into a Web project. This application is deployed on Websphere 8.x, and the whole configuration, including the…
codependent
  • 23,193
  • 31
  • 166
  • 308
0
votes
2 answers

Ejb - message driven bean configuration

I have two message driven beans in my project. Which one will be called by ejb container when a message is sent to queue. Where is it configured which bean to invoke. What is use of ejb-jar.xml and ibm-ejb-jar-bnd. Xml. Please explain
0
votes
1 answer

Concurrent Processing - JMS

I saw one of the applications in my company make concurrent calls using JMS. The app is a webservice written in Spring. This makes a number of external calls. When a request is received for an operation , it posts a number of messages to JMS queues…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
0
votes
0 answers

Message driven bean : Return message to queue and stop listening to queue

I have message driven bean which listen to the queue. There are more than one listener to this queue (from different contexts - different ear files). All I need to do is, when message is received and it was received with bean from different ear that…
0
votes
1 answer

How to handle multiple MDB instances with more listener sessions

This is regarding Websphere Application Serve, Java Message Service, Message Queue and Listener. I have a scenario where my listener can have more sessions. So my MDB (message driven bean) can have multiple instances while running on WAS server…
johnny nb
  • 1
  • 1
  • 1
0
votes
2 answers

Facing OutOfMemory issue in Java

I am facing out of memory issue due to high heap allocation.I verified it from HP Diagnostics tool and it is pointing to a section in my code where I am adding elements in an arraylist. I am not able o figure out how else can I write this code so…
Neel
  • 199
  • 3
  • 18
0
votes
2 answers

Java MessageDriven Beans Issue

i need help with this kind of issue: Exception attempting to inject Unresolved Message-Destination-Ref web.News/queue@java.lang.String@null into class web.News: Lookup failed for 'java:comp/env/web.News/queue' in…
Mac
  • 1
  • 2
0
votes
1 answer

Injecting message driven beans

In an enterprise application, I'm trying to inject MessageDriven beans into the web-application (to a REST service) using netBeans 8.1. I dont get any warnings in the IDE, however, at deploy time i get the following error: Severe: Exception while…
Vendel Serke
  • 135
  • 11
0
votes
0 answers

Message were not found on queue

Currently im doing a JMS application that needs to send message to queue and received a reply. I sent 3 messages to the queue and mdb will read the message. But the problem now is that mdb did not read all the 3 messages that were sent. It sometimes…
Jibam
  • 11
  • 1
0
votes
1 answer

Concurrency in Message Driven Bean - Thread safe Java EE5 vs. EE6

I have a situation where I need a set of operations be enclosed into a single transaction and be thread safe from a MDB. If thread A executes the instruction 1, do not want other threads can read, at least not the same, data that thread A is…