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

How to restrict the ejb mdb(messsage driven beans) instances via wildfly 10 standalone-full.xml

We have the following configuration in standalone-full.xml of wildfly10.
1
vote
1 answer

JMS durable subscriber in a cluster with multiple instances

I am going to be using Payara BTW.... Suppose I have: A JMS Topic An MDB configured as a durable topic subscriber Multiple instances of the MDB are deployed across the cluster and they are all using the same client ID value to make the durable…
1
vote
1 answer

com.ibm.ejs.container.EJBConfigurationException: REQUIRED_BINDING_NOT_FOUND for MDB: CIProcessingMDB

I am writing a MDB and getting the following error: [6/17/16 11:46:12:214 CDT] 0000008e SharedEJBRunt I WSVR0037I: Starting EJB jar: CIEventProccessingEJB.jar [6/17/16 11:46:12:786 CDT] 0000008d ApplicationMg A WSVR0221I: Application started:…
Dalton Heiland
  • 117
  • 2
  • 7
1
vote
1 answer

wildfly 10, JMS, MDB, topic does not receive message

I have two message driven beans @MessageDriven(name = "SubscribersTopicQueueMDB", activationConfig = { @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "jms/topic/Subscribers"), …
Armen Arzumanyan
  • 1,939
  • 3
  • 30
  • 56
1
vote
1 answer

Set JMS redelivery limit in Weblogic

I an using JMS in weblogic. If my MDB throws an exception, the message is redelivered. The problem I am trying to fix is set a message redelivery limit. Because the message deleivery does not stop. Goes over 300 times until I delete the entire…
user1860447
  • 1,316
  • 8
  • 25
  • 46
1
vote
1 answer

How to save to database data retrieved from a message driven bean?

I'm want to use the n-tier architecture for an application so the client tier, web tier, business tier and data tier is separate. I'm wondering how a message driven bean which has a message save it to the database without changing the architecture.…
1
vote
0 answers

MessageDrivenBean(EJB3.0) when depoyed on IBM WAS 8.0 gives 'no onMessage() method'

MDB class implements MessageListener (javax.jms.MessageListener) and this ejb is packaged as an ear and deployed on IBM WAS 8.0. MDB listens on a queue. Whenever there is message on the queue, the MDB tries to listen on to that queue , immediately…
Nishanth
  • 317
  • 4
  • 16
1
vote
1 answer

Missing Message from JMS Topic

I have a WebLogic (12.1.3) cluster set up with two managed servers. Each server has the same EAR deployed to it. The EAR contains two message-driven beans (MDB) listening to the same distributed JMS topic. Whenever a message is sent to the JMS…
Steven P.
  • 941
  • 5
  • 15
1
vote
2 answers

How can one modify the **max-beans-in-free-pool** property for a given MDB via the Weblogic 10.3.1.0 Console?

How can one modify the max-beans-in-free-pool property for a given MDB via the Weblogic 10.3.1.0 Console ? I know this can be added in weblogic-ejb-jar.xml configuration file, but want to do this via Weblogic Console.
1
vote
0 answers

Wildfly 9.1 Messaging (Clustered hornetq) - Domain mode - topic message (not shareSubscriptions) not consumed by MDB on one node only

I'm using Wildfly 9.1 in domain mode. I have three hosts: A , B and C. All nodes have a test server with the same test.ear. After starting the three nodes, all ClusterConnectionBridge are created correctly between them. Each node send messages on…
1
vote
1 answer

Message-Driven Bean reads two times the same message

Good morning in my timezone. Application Server -> WAS 7 EJB 3.0 In the project i am working on, we are using an Message-Driven bean to read messages from a queue. This Message-Driven bean read two times the same message and in the second read it…
tt0686
  • 1,771
  • 6
  • 31
  • 60
1
vote
0 answers

seam test fails when running with @Depends

I have a MDB marked with @Depends making it dependent on my war, when I deploy the application to the server it works ok, but when I try to run my tests the test fails...seams because of some wrong config...any hints to solve this? I guess that the…
simonC
  • 4,101
  • 10
  • 50
  • 78
1
vote
1 answer

Message Driven Beans and Retry with exponential back off

I have a requirement where in if service (Restful service) I call from message driven bean is down or does not return success, I need to rollBack message back to queue, wait for some time(exponentially) and then read message again from queue and try…
javaguy
  • 927
  • 2
  • 16
  • 37
1
vote
0 answers

Message Driven Bean deploy error in WildFly

I'm quite new to JMS and WildFly 10.0.0.CR5 I've started with a very simple task: adding a topic to the default server shipped with WildFly and deploy a MDB (in an EJB jar, and the EJB jar is inside an EAR) that listens on that topic. The code of…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36
1
vote
0 answers

Using 1 MDB to consume all messages on a Cluster

I'm using WildlFly 10 CR3 and I have 2 artemis server on a cluster. Can I use a single MDB to consume on every node of the cluster?. This is my MDB @TransactionManagement(TransactionManagementType.CONTAINER) @MessageDriven(name =…
Ant'
  • 11
  • 3