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

Problems creating JMS Queue on Glassfish

i'm get the following error when deploying my application with a JMS producer and consumer com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : QueueName I used the annotations below: Producer @Resource(name =…
n002213f
  • 7,805
  • 13
  • 69
  • 105
2
votes
2 answers

Message Driven Bean with a Datasource

My question is how do I configure an EJB 3.0 style message driven bean to use a configured JMS datasource in jboss. For example, my MDB looks something like: @MessageDriven(mappedName = "ExampleMDB", activationConfig = { …
James
  • 31
  • 1
  • 3
2
votes
1 answer

What's the best Communication Pattern for EJB3-based applications?

I'm starting a Java EE project that needs to be strongly scalable. So far, the concept was: several Message Driven Beans, responsible for different parts of the architecture each MDB has a Session Bean injected, handling the business logic a couple…
Hank
  • 4,597
  • 5
  • 42
  • 84
2
votes
2 answers

Message Driven Bean with Java Message Queue down

I have the following problem deploying my application. It uses JMS and a remote openMQ for communication between servers. The problem is that the connection is not fully reliable so it can be up or down. For reconnecting I set the jms reconnect…
Rafa de Castro
  • 2,474
  • 1
  • 24
  • 44
2
votes
1 answer

Annotation equivalent for activation-spec-binding-name

I'm migrating an application from Websphere Application Server 7 to 8.5. The application uses a MessageDrivenBean with JMS Activation Specification to consume messages from a queue. In the previous version we used the ibm-ejb-jar-bnd.xml to bind the…
Robert-Jan
  • 180
  • 2
  • 12
2
votes
1 answer

MDB for receiving emails

I'm trying to receive emails with a message-driven bean. I'm using jboss wildfly. Unfortunatley, I can't find a real documentation on it. This is the most I've found so far: @MessageDriven(activationConfig={ …
EasterBunnyBugSmasher
  • 1,507
  • 2
  • 15
  • 34
2
votes
1 answer

how do i set the pool size of message driven beans in tomee?

I have 3 types of MDBs in my TomEE 1.6.0 app. I'd like to set the max pool size of one of them to a certain value, without affecting the others. Tomee docs give instructions on how to set for a EJB type…
Leo
  • 6,480
  • 4
  • 37
  • 52
2
votes
1 answer

Single Threaded MDB on Glassfish

I have a number of MDBs running on Glassfish 3.1.2.2. Due to the nature of work on one of the MDBs I need to make it single threaded. I looked at the Tuning Guide, and while setting the maximum pool size to 1 does resolve the problem, it also means…
2
votes
1 answer

MDB creation In WAS 7

I am trying to create a local queue and a mdb that listens this local queue in my WAS 7.0 server. I reffered this URL and followed all the steps given. When i tried to run it am getting the below exception. AnnotativeMetadataManagerImpl merge Caught…
Mohan
  • 3,893
  • 9
  • 33
  • 42
2
votes
0 answers

jboss 7 (eap 6) wmq.jmsra.rar ejb3 mdb configuration

I want to specify the location of a queue (queue manager & queue name) in my server configuration. I have an MDB working with only the following; the MDB: @MessageDriven(name = "smis2/DelmeMDB" , activationConfig = { …
cslauritsen
  • 96
  • 1
  • 5
2
votes
3 answers

Transaction demarcation when sending a JMS message using EJB 3

In my Java EE application I have implemented an asynchronous DB logger as an MDB which receives XML messages via JMS and writes them to the DB. In another MDB I create a log message and send them to the input queue of the logger MDB using the…
Peter Schura
  • 130
  • 2
  • 15
2
votes
1 answer

Why we can set only destination type(Queue name) in message driven bean?

Why We can set only single destination type in message driven bean in EJB? @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName =…
user2538100
2
votes
1 answer

JMS MDB or ScheduledThreadPoolExecutor for asynchronous tasks

I've been using JMS Message Driven Bean for a while and it is working great for the asynchronous tasks. I know that there is many ways to handle the asynchronous processes, but I am just curious what are the benefits over using JMS Message Driven…
user1448458
2
votes
2 answers

MDB with container managed transaction & worker thread

I have an MDB which uses container managed transaction (my container is IBM Websphere 7). Websphere is using a global (JTA) transaction. If my MDB thread starts a worker thread, and that thread begins a transaction, will that new thread be within…
2
votes
2 answers

Nested transaction behaviour in EJB

Today I discovered some unexpected behaviour in EJB. I've got MDB with default transaction attribute (REQUIRED) and SLSB with transaction attribute set to REQUIRES_NEW. My MDB calls the SLSB and catch any exception that SLSB can throw. When…
gkuzmin
  • 2,414
  • 17
  • 24