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

Trouble connecting to a remote JMS queue from one wildfly 10 app to another

I have two Wildfly 10 servers running and had a JMS queue working with Jboss and Hornet. There I used netty connectors so I scrapped all the config and got the default config for messaging on wildfy 10. I cannot get JMS to work properly. I haven't…
Tomas Andersen
  • 289
  • 1
  • 4
  • 13
0
votes
1 answer

Exception Handling on Message Driven Bean in Java

I have created a MDB to listen to the messages on a Queue. Question- I want to stop the MDB or the application if it fails more than 10 times with the same exception. I am using EJB 3.1 and Queues,AS is created on IBM WebSphere Console.
0
votes
0 answers

Prohibit create queue in ActiveMQ

I have a MessageDrivenBean in my JavaApplication that receives messages from ActiveMQ with destinationpattern 'my.queue.*.consumer'. In my glassfish I have deployed a ActiveMQ-Resource-Adapter (vserion 5.14.1). This adapter connect with user…
Sheldon
  • 276
  • 3
  • 17
0
votes
1 answer

MessageDrivenBean: AMQ122000: I''m closing a JMS connection you left open

when sending some messages via a MDB there are some warnings about unclosed JMS connections which then are closed by ActiveMQ. The MDB gets a messageHandler injected which gets a replysender injected whichs method is given below. This is the warning…
Kaspatoo
  • 1,223
  • 2
  • 11
  • 28
0
votes
1 answer

Specify DeadLetterQueue for redelivered messages in MessageDrivenBean

I've create a MDB that reads messages from ActiveMQ @MessageDriven(name = "MessageReaderEJB", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), …
Sheldon
  • 276
  • 3
  • 17
0
votes
1 answer

Messages not sent to reply queue on an RTE

In our current application using JBoss EAP 6.2, we have many batch jobs triggered by remote EJB invocations. In order to centralize all notification logic for these jobs we are deciding to route all calls through an MDB by passing a serialized…
Vrushank
  • 2,763
  • 3
  • 27
  • 41
0
votes
1 answer

Set maxsession for MDB through ejb-jar.xml in JBoss

I want to configure maxsession for MDB So there is a below annotation on the MDB class @ActivationConfigProperty(propertyName="maxSession",propertyValue="6") Snippet @MessageDriven (activationConfig = { …
happy
  • 2,550
  • 17
  • 64
  • 109
0
votes
1 answer

How to use message driven beans between two clients

I am new to EJB and JavaEE in general and I am currently working on a little project that basically implements a game where two players PlayerA and PlayerB can play via web browser. I currently have a set up for several JSP pages like this: login ->…
AlenEviLL
  • 56
  • 1
  • 9
0
votes
1 answer

MessageDrivenBean instance identifier

Is it possible to get the identifier of the MDB instance that is executing? I have a pool of MDB (e.g. 10) and I set in my messages the property JMSXGroupID in order to have the same MDB instance processing all the messages with same JMSXGroupID. To…
Wallkan
  • 480
  • 1
  • 8
  • 27
0
votes
1 answer

MDB consume several messages on same transaction

I have an application with a high level of load and performance's critical . Now, I'm migrating the application to use EJB. I'm very worried about using EJB to consume messages on queues because transactionality can decrease the performance. Now,…
0
votes
1 answer

Is MessageDrivenContext.setRollbackOnly() required put permissions for queue

When we use MessageDrivenContext.setRollbackOnly(), Container will rollback the transaction contest so the message will be put back to JMS queue. Is it required explicit put permission for that queue or as its transaction level so container will…
R D
  • 1,330
  • 13
  • 30
0
votes
1 answer

Spring Injection into MessageDrivenBean does not work - null pointer - jboss eap 7

I have an MDB which shall get its messageHandler implementation via autowiring. But at runtine this object is null. Even the breakpoint at the setter never has been reached. When having a breakpoint within the onMessage method of the BaseMDB (wich…
Kaspatoo
  • 1,223
  • 2
  • 11
  • 28
0
votes
1 answer

Weblogic 12c - EJB 3.1 MDB How to apply filtering on JSON Message

I have a requirement to handle JSON Messages coming to a Topic.The topic will get different kinds of JSON Messages The JSON Message Payload will have an field to indicate the event type.Is there a way in MDB to apply message filters on the JSON…
0
votes
0 answers

How to establish a single socket connection in EJB Message driven bean deployed in weblogic server?

I have a applciation deployed in weblogic server as MDB.This utility will read the messages queued into JMS and send it to a server using socket connection. To acheive this, how can i establish a single socket connection at EJB/container level so…
lovin
  • 563
  • 2
  • 14
  • 27
0
votes
1 answer

TomEE MDB Message Driven Beans

Is it possible to dynamically assign a runtime value for "destination" in MDB (Message Driven Bean)? The annotation based approach forces to hardcode it on MDB @MessageDriven(name="PingPongMDB", activationConfig = { @ActivationConfigProperty( …
Suyog Barve
  • 237
  • 3
  • 10