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

Greedy threads are grabbing too many JMS messages under WebLogic

We encountered a problem under WebLogic 8.1 that we lived with but could never fix. We often queue up a hundred or more JMS messages, each of which represents a unit of work. Despite the fact that each message is of the same size and looks the same,…
John Munsch
  • 19,530
  • 8
  • 42
  • 72
1
vote
0 answers

Simplest way to stub a JMS message?

I'd like to unit test a Java EE Message Driven Bean's onMessage() method. It receives a JMS message and does reading and some processing of the message content. I'd like to stub the JMS message, but both ways known to me are not optimal: Using a…
jhyot
  • 3,733
  • 1
  • 27
  • 44
1
vote
2 answers

Redeliver message to queue on error with Message Driven Bean

I need return a message to the queue when something wrong happend. I am working with Message Driven Bean on Weblogic 11G (EJB3.0) , Java 1.6, javaee-api 6.0, the queue is on Oracle database (AQJMS) I dont want send the message to an error…
Kaltresian
  • 961
  • 3
  • 14
  • 32
1
vote
1 answer

activation of message driven bean using IBM MQ 7.5 resource adapter (wmq.jmsra) in glassfish 3

Although documented as tested against Glassfish, use of the IBM native MQ resource adapter (wmq.jmsra.rar) by Message Driven Beans in Glassfish is far from being obvious. There are numerous standard configuration facilities defined by EJB and JCA…
Bernard Hauzeur
  • 2,317
  • 1
  • 18
  • 25
1
vote
1 answer

Generate Client ID on deploy

I have a WildFly cluster which should share all topic messages to different nodes and keep them if one node is offline. For this case I need durable subscriper. @MessageDriven( activationConfig = { @ActivationConfigProperty(propertyName…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
2 answers

JMS queue and message driven bean work strangely in websphere 8.5

My project are built based on websphere 8.5 and we decided to use JMS quque for message within my project. So, I createad a bus named MyBus, also created a destination myBusDistination. Then I created a Connection Factory named myConF Then I created…
zhianABCD
  • 223
  • 1
  • 4
  • 15
1
vote
1 answer

Out of order messages in Jboss

We faced an issue in the message driven bean (MDB). When multiple messages are received at the MDB at a same time, starting to process messages out of order. (execution sequence is not same as the receiving sequence) eg: Original order of the…
Ruchira Gayan Ranaweera
  • 34,993
  • 17
  • 75
  • 115
1
vote
1 answer

problem with seam and mdb on jboss5.1

I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet…
simonC
  • 4,101
  • 10
  • 50
  • 78
1
vote
3 answers

Jboss EAP 6.3 - listen to remote JMS topic (HornetQ)

I have one Jboss EAP 6.3 instance with the HornetQ topic hosted there (jndi - "java:jboss/exported/jms/topic/TestTopic" so should be visible remotely) and I have another instanse (say Client) deployed to the same Jboss version. I have to listen to…
Vit Ias
  • 725
  • 4
  • 16
1
vote
3 answers

Long running tasks in message-driven beans and timeouts

I want to process some very long running tasks using MDBs (hours), but MDBs are backed by JMS, which has some timeout (about 10 minutes in tomEE I think). To make things worse, jobs are persistent too. Since I can't catch the timeout exception on…
Leo
  • 6,480
  • 4
  • 37
  • 52
1
vote
1 answer

OpenCSV + JMS/MDB behavior + performance issue

I have an web application, that runs under Glassfish 4.1, that contains a couple of features that require JMS/MDB. In particular I am having problems regarding the generation of a report using JMS/MDB, that is, obtain data from a table and dump them…
mpc
  • 83
  • 1
  • 9
1
vote
1 answer

hello world with JMS on Glassfish

Following the JMS example in Java EE 7 with GlassFish 4 Application Server, p 203, I can send messages, but but can't seem to receive messages: sending a message: thufir@doge:~$ thufir@doge:~$ appclient -client…
Thufir
  • 8,216
  • 28
  • 125
  • 273
1
vote
1 answer

How can i receive messages through an MDB remotely in Wildfly?

I've got two Wildfly servers running on different machines, one of which will be sending JMS messages to the other. I've created a simple test application that seems to be sending messages but the other side is not receiving. In fact it's already…
ErikiCb
  • 21
  • 6
1
vote
0 answers

Dynamic messageSelector in Glassfish 2.1

It is possible to have a messageSelector value based on a System property? I have an MDB: @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "notification_channel_id = 'EMAIL' AND instance= 'domain1'") What I would have is:…
pikimota
  • 241
  • 1
  • 4
  • 15
1
vote
1 answer

Message selector on MDBean not working properly

I'm having a bit of a problem with an application, the message-selector of my MD Bean doesn't respond to the filter specified, if i use inside the message-selector : module in ('TELCOM1') works perfectly , but if i add a second parameter to the…