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

MDB Maillistener @ActivationConfigProperty for SSL

We have a MDB which is rading emails from an email account, the MDB implements MailListener interface and I'm looking for a property to enable POP3 via SSL i have the settings in xml like this, below, I nead an aditional activation-config-property…
simonC
  • 4,101
  • 10
  • 50
  • 78
0
votes
1 answer

Dealing with transactions and event driven consumer with ActiveMQ NMS

Quoting from EIP patterns book from Hohpe G. and Woolf B. : Note that in JMS, an Event-Driven Consumer that is also a Transactional Client will not work as expected. Normally a transaction is rolled back when the code in the transaction throws…
LMeyer
  • 2,570
  • 1
  • 24
  • 35
0
votes
1 answer

How do I access the Principal in a Message Driven Bean?

In the onMessage method of a MDB, how can I retrieve the name of the JAAS User Principal that initiated the request? My application is using Servlet login and a jdbcRealm. I have considered adding this as a Message Property, but I would rather…
Graham
  • 7,431
  • 18
  • 59
  • 84
0
votes
2 answers

Make a message driven bean listens to external topic

Good day all, I am trying to config a message driven bean to subscribe to an external topic. I and my coworker has together successfully listen to the topic with JSE client which looks something like this. public static void main(String[] args)…
NawaMan
  • 25,129
  • 10
  • 51
  • 77
0
votes
1 answer

MessageDriven Bean: is MessageDrivenContext#setRollbackOnly() in Java EE 6 still required?

I have a Message Driven Bean (EJB 2.1) which does the following: public void onMessage(javax.jms.Message msg) { try{ ... } catch (JMSException e) { e.printStackTrace(); getMessageDrivenContext().setRollbackOnly(); } I want to convert…
Federico
  • 561
  • 2
  • 11
  • 32
0
votes
1 answer

Toplink and CMT message driven bean

I am trying to integrate Toplink with CMT Message driven bean. MY MDB is CMT. When I try to use unitofwork commit it is erroring out saying a global transaction is present so can not do local commit. After researching toplink they suggested…
0
votes
1 answer

Apparent resource leak in MDB exception handling

I've got an MDB which consumes messages from a queue, and then invokes a stateless EJB to perform some db operations. Something like this: public class TestMDB implements MessageListener { @EJB private UpdateService updateSvc; @Override …
Jeff
  • 227
  • 4
  • 17
0
votes
1 answer

Glassfish/JMS MDB transaction aborted

I have a number of MDBs in my Glassfish 3.1.2.2 application that consume JMS messages on a regular interval. All will seemingly work flawlessly for a period of time after application startup- anywhere from 12 hours to a couple of days. Then, I will…
Jeff
  • 227
  • 4
  • 17
0
votes
1 answer

How to tell which MDB is listening on which port

From the WAS admin console, is there an easy way to check which MDB is listening on which listener port? I cannot open up the ear and check the ibm-ejb-jar-bnd.xml file because I do not have access on the machine itself, just the WAS console.
Victor
  • 16,609
  • 71
  • 229
  • 409
0
votes
4 answers

Message Driven Beans - Single Bus, Multiple Activation Specs

I have 2 Message driven beans. 2 Activation Specs for these beans. I have one Message bus and both the activation specs are configured to this one bus. I have 2 different queues and one queue connection factory configured for that one Message bus.…
Jay
  • 2,394
  • 11
  • 54
  • 98
0
votes
1 answer

How to connect Glassfish 3 to an external ActiveMQ 5 broker

I need to be able to consume and produce messages to and from our activemq cluster from applications deployed on glassfish 3. How should I configure glassfish in order to achieve this?
0
votes
1 answer

message driven bean avec jboss 6

Hi i want to notify my client when a critical operation is happened , so i want to use the message driven bean i ve writen this mdb ` @MessageDriven(mappedName = "topic/MailConfirmationMdbTopic", activationConfig = { …
AhmedDrira
  • 425
  • 5
  • 13
0
votes
1 answer

Start stop JMS Message Listener

I have written two classes a JMS Message sender and JMS Message Listener class which are required to interact with SonicMQ which is configured on other system which is not in my control. I need to send JMS messages to a particular Queue and receive…
jagu dada
  • 1
  • 1
-1
votes
1 answer

JavaEE MDB "EJB Container initialisation error"

I'm pretty new to JavaEE, and I want to make a message driven bean that consumes a message and a producer that produces a message. I got most of this code from a JavaEE manual, but it doesn't want to compile on my Glassfish server. Here is the code…
jimjim
  • 19
  • 2
-1
votes
1 answer

JMS flow control

I need to create a JMS consumer for which I can dinamically set the dequeue rate, something like N message per minute/second. If I use the message-driven beans I can control the pool size, but I can't introduce a wait in a clean way, I can use…
user5919369
  • 111
  • 6
1 2 3
29
30