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

Message driven POJO with spring. Can't receive the message

my application deployed on Tomcat am I am trying to send and receive message from remote queue. I already have succeeded to send few messages to remote queue. Now I am trying to build message listener container, however my onMessage(method is never…
liotur
  • 809
  • 2
  • 17
  • 36
0
votes
1 answer

JBOSS Standalone XML Override "activation-config-property" for inbound MQ communication?

We are using JBOSS EAP 6.4 with WMQ adapter. We have a MDB whose activation config properties are configured inside "ejb-jar.xml". Application is already deployed into the production and we need to override/add new activation config property. We can…
user613114
  • 2,731
  • 11
  • 47
  • 73
0
votes
1 answer

Start JBoss EAP server with paused queue

I have implemented a JMS based application relying on JBoss EAP 6.3 HornetQ. I have several queues, but I need one of them to be "paused" by default (at server startup), unless I explicitly resume it. If you are wondering why I need a paused queue,…
Davide
  • 136
  • 8
0
votes
3 answers

Should Message Driven Bean Business Logic be delegated to EJB session bean

I have been asked to investigate some of our MDBs and where applicable move logic to an EJB. My question is does it matter if all the logic is in the OnMessage method or should this call an EJB method. The current logic does not need to be called…
andyfinch
  • 1,312
  • 2
  • 19
  • 34
0
votes
1 answer

Deploy more instances of the same MDB

We have an application that writes messages to a Queue (not a topic). Another application (a cluster with two nodes) reads the messages from the queue via Message Driven Beans. All applications are deployed on Glassfish 4 servers. We are currently…
pixie
  • 507
  • 9
  • 21
0
votes
1 answer

Where to configure the org.jboss.ejb3.mdb.MdbDelegateWrapper

I need to reduce the pool size of an MDB to 5 because it connect to an external resource that is limited in terms of connections. If I have 15 messages in my JMS queue, then only 5 msg are process successfully and the other 10 are waist because of…
Alain
  • 237
  • 1
  • 4
  • 13
0
votes
1 answer

Alternative needed for annotation ActivationConfigProperty

I have an MDB on JBoss eap. What I want is to register queues from my java code. All I could find is using ejb-jar.xml if one donot want to use annotation. So is there any way that I can provide destination and destination type from Java code , like…
Mohit Bhagat
  • 245
  • 5
  • 14
0
votes
1 answer

ActiveMQ and MDBs - Prefer consuming older messages (prefer FIFO)

We have a queue in ActiveMQ which is consumed by ~50 instances (sessions) of the same MDB. The problem is that sometimes the queue receive a lot of messages and keep receiving lot of messages for various minutes. And the consumers is pulling the…
0
votes
0 answers

javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @Singleton does not exist within current thread

Hi I am calling method of another module from my ejb which get invoked from my mdb. This works on my machine on single jvm on wildfly. However when same code is deployed on WebSphere 8.5 on cluster environment it gives me error. I would appreciate…
AKASHPAL
  • 11
  • 5
0
votes
1 answer

Get queue name from within MDB

Is it possible to infer the name of the bound queue or listener port from within an MDB?
Synesso
  • 37,610
  • 35
  • 136
  • 207
0
votes
1 answer

how can i do for an MDB to deploy last on my wildfly

What is happening to me is that the MDB receives messages and tries to process them and even my server has not started completely any idea how to solve this?
MIKEL
  • 65
  • 1
  • 1
  • 4
0
votes
1 answer

looking for current example of MDB consuming messages from remote queue in Wildfly 10

I have a Wildfly 10 instance which defines a queue, publishes to that queue as well as receives from that queue via an MDB. That has been have accomplished. Now I want to add a second Wildfly 10 instance, running on another machine, which will…
inor
  • 2,781
  • 2
  • 32
  • 42
0
votes
1 answer

MDB how to get connection settings from server environment

I have a message driven bean which connects to a remote HornetQ JMS provider (different for production/testing). The connection settings are stored either in sun-ejb-jar.xml or as @ActivationConfigProperty annotations directly in the MDB…
Bogdan
  • 5,368
  • 9
  • 43
  • 62
0
votes
1 answer

mdb project created and deployed but unable to do lookup from a standalone program

I have created a MDB bean and deployed in glassfish 4 and application got deployed successfully, but i am trying to put message in the queue using a standalone client. And i am getting this error. **java.lang.NullPointerException at…
Vicky Rathee
  • 69
  • 11
0
votes
1 answer

JDK 5 File/Stream Read Timeout API in an MDB

Is there a JDK 5 or older API for reading files and or reading streams with a timeout? Also, this API must be safe when wrapped inside an MDB. FYI: I have already looked into using the FutureResult, TimedCallable classes and the like; I have come to…
TheWolf
  • 1,675
  • 4
  • 22
  • 34