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

Resources auto linking to TomEE EJB beans

I am developing JMS based module which consume message from IBM MQ and persist the data. My app is running in TomEE 8.0.0-M2. While starting my application I notice that Auto-linking resource-ref 'openejb/Resource is happening against all my EJB…
Gnana
  • 2,130
  • 5
  • 26
  • 57
1
vote
1 answer

Programmatically stopping MDB in JBoss 5.1.0GA

I am trying to stop a MDB in JBoss 5.1.0. My code is as follows : public static void stopAllMDB() throws InterruptedException, MalformedObjectNameException, NullPointerException { String currentVersion = "1.0"; for (String…
Sergiu
  • 2,502
  • 6
  • 35
  • 57
1
vote
2 answers

.Net equivalent of message driven beans

Is there an equivalent of Java Message Driven Beans for .Net?
Pram
  • 2,261
  • 3
  • 31
  • 50
1
vote
0 answers

Can I write and read messages from queue in beans described in one ejb-jar?

I have two EJBs, which are described in one ejb-jar.xml. The first one is stateless bean and puts a message in WebSpheres message queue with manually created connection. @Remote({ Producer.class }) public class ProducerImpl implements Producer,…
Nimtar
  • 188
  • 2
  • 11
1
vote
1 answer

How can I get this simple (IBM MQ) MDB project to deploy to Tomee... -what configuration is required for a successful deployment

QUESTION: What CDI annotations, tomee.xml configuration [,etc.] will allow successful deployment of this simple message driven bean? I'm attempting to deploy a MessageDriven bean using CDI and IBM MQ - running on Tomee 7.1 Plume... After many…
sairn
  • 461
  • 3
  • 24
  • 58
1
vote
1 answer

Combining MDB, JPA and JTA

I'm developing a system to process messages and update the database accordingly, but I need to keep some degree of isolation between layers. I have in mind something like the following. MyDao.java: a @Stateless bean that provides database access.…
Davide
  • 136
  • 8
1
vote
0 answers

NoInitialContextException when deploying MDB on custom resource adapter

I developed a resource adapter that I would like to use within my application ear, deployed in JBoss 5.1. After playing around with annotations and xml files, I came up with the following setup. ejb-jar.xml
LeChe
  • 1,288
  • 14
  • 18
1
vote
1 answer

Message driven bean not receiving any messages

My message driven bean is not receiving any messages, though I can see that messages has been sent to the queue. The EE container is WildFly 10.1.0.Final and I'm using the embedded Apache ActiveMQ Artemis. Sending messages to the queue is working…
1
vote
0 answers

Error in resuming JBoss Server (Wildfly 12.0.0.Final)

I recently deployed my application into local JBoss server and everything works just fine. Then I try to migrate the application into JBoss/wildfly-12 Server (Docker version) and now having a problem. Here's a look into the log file: TRACE…
Andrew
  • 11
  • 4
1
vote
2 answers

Weblogic Message Driven Bean reading from a secured queue @RunAs does not work

I have a MDB very simple which works fine as long as the queue from where it reads messages is not secured After I secure the Queue with a username it can;t read messages anymore @MessageDriven(mappedName = "DistributedQueueTest") public class…
Cris
  • 4,947
  • 6
  • 44
  • 73
1
vote
2 answers

Tell OpenEJB to ignore MDB

I wrote an unit-test for an activity which finally puts a message into a queue. As soon as a message is put into that queue, a message driven bean starts processing. But I don't want to test MDBs in a unit test. How can I tell OpenEJB to ignore…
Christian Strempfer
  • 7,291
  • 6
  • 50
  • 75
1
vote
1 answer

Changing Activation Config of Topic reading MDB at deploy time

I feel this should be easy. Just RTM and go. But I can't find the info I need. Q: Can I change the value of an @ActivationConfigProperty at deploy time without having to write any XML? More detail I have an MDB which is using the @MessageDriven…
Synesso
  • 37,610
  • 35
  • 136
  • 207
1
vote
1 answer

Which is the best way to handle exception in java MDB?

I got this use case: Here the class diagram Here the sequence diagram This diagram represents an enterprise model. Java EE technology on Weblogic 10.3 with the leverage of spring framework for IoC and AOP, JPA for persistence with spring…
Massimo Ugues
  • 4,373
  • 8
  • 43
  • 56
1
vote
1 answer

JBoss MDB - JMSBytesMessage class cast exception

I'm working on an EJB3 MDB that listen to a MQ queue in a distant server. All is working fine (MDB triggered when a message is put into the listenned queue) except the treatment done by the MDB. For information, i use WMQ resource adapter to map the…
kij
  • 1,421
  • 1
  • 16
  • 40
1
vote
0 answers

How to inject EntityManager in a MDB which is configured in ejb-jar.xml

I have demo application with JPA 2.1 and weblogic 12.1.3 deployment works fine and am able to get EntityManager which is annotated on the stateless bean. I have application where I have ejb-jar.xml, on this file we have configured all MDB and…
Dayananda
  • 17
  • 9