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

@MessageDriven bean not receiving messages

I made some changes per suggestions from another question to turn my class into a @Singleton rather than @Stateless, however I'm no longer receiving messages in my @MessageDriven Bean as I was before. Suggestions? Note that the topic is correctly…
StormeHawke
  • 5,987
  • 5
  • 45
  • 73
0
votes
0 answers

Use two or more instances of a single message driven bean to read two MQ:s

I have a requirement of splitting messages that are currently in one IBM MQ (read by an MDB on WLS) in to two separate MQ:s based on the type of the message. One type is "batch messages" where the message creators might issue batches of tens of…
Tero
  • 1
0
votes
3 answers

Spring Message Driven Bean and java.util.Queue

I have some non-critical clean up operation that I want to perform inside my web-app. I'm hoping to hand it off to an asynchronous process, but I don't have any JMS provider available to me ( and I'm not likely to get one approved in the timescales…
DaveH
  • 7,187
  • 5
  • 32
  • 53
0
votes
1 answer

JBoss 4.2.2 MDB Long Running OnMesage

I am attempting to use an MDB (onMessage) to run a long running JDBC sql query and export the output to disk. I am running into timeouts with the onMessage because the acknowledge takes place after the successful completion of the onMessage. …
Bill Pfeiffer
  • 926
  • 8
  • 20
0
votes
2 answers

Error on JMS Queue because of destination in websphere used by Message Driven Beans

I am getting the following error: Application EBS_Calc#EBS_Calc_EJB.jar#MBIntegrations has an , useJNDI, for which there is no corresponding property on the ActivationSpec class jms/ASQueue(com.ibm.ws.sib.api.jmsra.impl.JmsJcaActivationSpecImpl) of…
otc
  • 694
  • 1
  • 9
  • 40
0
votes
2 answers

Consume ActiveMQ advisory messages in tomEE mdb

I have an MDB that manages to consume ActiveMQ advisory messages when deployed on glassfish. But when i deploy on tomEE this MDB doesnt consume any advisory messages. Is there something I need to turn on? @MessageDriven(mappedName =…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
0
votes
1 answer

Configure Message Driven Bean using ejb-jar.xml

I am trying to configure Message Driven Bean using ejb-jar. I am using EJB 3.1, Netbeans 7.3 and Glassfish 3.1.2, but I am getting exception: Exception while deploying the app: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 29;…
Sanja
  • 397
  • 2
  • 7
  • 24
0
votes
1 answer

Deploy MDB using GenericJMSRA on GlassFish with annotations?

On GlassFish Server 2.1 I have created a GenericJMSRA for connection with ActiveMQ as described in this guideline: http://activemq.apache.org/sjsas-with-genericjmsra.html I have successfully been able to deploy an MDB using the the classical way of…
aksamit
  • 2,325
  • 8
  • 28
  • 40
0
votes
1 answer

Setting up MDBs to consume JMS messages in Weblogic 10.3.5

I'm trying to set up part of an application which uses MDBs to consume messages from a JMS Queue. I've looked through the Oracle documentation but can't seem to make sense of it. Examples on the internet seem to be for situations where your JMS…
user2258651
  • 383
  • 5
  • 8
0
votes
1 answer

JBoss6 MDB failing to deploy but deploys fine in JBoss4.0.4

I'm trying to deploy a jar that I have in my JBoss-4.0.4.GA environment to a JBoss-6.0.0.Final environment. I have hit an issue that I'm not sure about. I am getting this error when starting JBoss: 17:45:27,719 INFO [EjbDeployer] installing bean:…
user265330
  • 2,533
  • 6
  • 31
  • 42
0
votes
1 answer

Glassfish - How to broadcast JMS message to all instances in a cluster?

I am using Glassfish 3.1.2, and I set up a cluster with one node and two instances. I have an message driven bean in my application that subscribes to a topic, which I deployed to the cluster. When I publish a message to the topic I want both…
Darren
  • 722
  • 4
  • 12
0
votes
0 answers

Message Driven Bean does not receive messages

I'm trying to implement a service which listens to a topic to receive messages sent to that topic. The code is quite simple: @MessageDriven(mappedName="jms/TEST", activationConfig={ …
Long Thai
  • 807
  • 3
  • 12
  • 34
0
votes
1 answer

JMS on Websphere MQ and backout queue

I have MQ as an external JMS server on my Weblogic server. The thing is that I need to rollback the message and retry until backout threshold is reached. Then I need to move the message to backout queue. The MessageDrivenContext.setRollbackOnly()…
Cleankod
  • 2,220
  • 5
  • 32
  • 52
0
votes
1 answer

Sending mails in Message Driven Bean

I'm completely new with javamail and I would like to know if it is the right approach to send mail from inside an MDB in a Java EE application. My purpose is simply to send asynchronous mail after a user has registered (only 1 mail at a time). Also,…
Olivier J.
  • 3,115
  • 11
  • 48
  • 71
0
votes
1 answer

Jboss7 MDB MailListener to a mail redopurce adapter

I'm porting a seam2/hibernate ear app to jboss7.1.1FINAL I've included in ear\lib the jar mail-ra.jar that contains sem interfaces I neaded. But it looks like that the mail-ra.jar lib is not find during the deploy I got the error above Any…
simonC
  • 4,101
  • 10
  • 50
  • 78