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

Sharded parallelisation in Java EE

I have a Java EE application where I require a high performant microservice to consume JMS messages with message driven beans. The service gives out and releases reservations for postal codes and persists these in the database. Since the service…
RoyB
  • 3,104
  • 1
  • 16
  • 37
0
votes
1 answer

Websphere 7 com.ibm.ejs.j2c.ConnectionEventListener.connectionErrorOccurred

I deployed a CMT MDB on Websphere 7, which gets messages from a Websphere MQ 7 queue and through a resource adapter it sends them to an external system. After the messages get through the MDB logic and I try to make a connection with the external…
kien
  • 11
  • 4
0
votes
1 answer

javax.resource.ResourceException: MQRA:EC:Invalid connectionFactoryLookup xxx configured in ActivationSpec of MDB for no JNDI name found

I'm using the following MessageDriven bean to send a text message to an EJB (via a message queue, not topic) using GlassFish Server 4.1. @JMSDestinationDefinition(name = "jms/destination", interfaceName =…
Tiny
  • 27,221
  • 105
  • 339
  • 599
0
votes
1 answer

Topic is not delivered to all Message Driven Beans in a Glassfish Cluster

I have created a topic factory and a topic pool on a glassfish 3.1.2.2 cluster. The cluster has a embedded conventional with a master broker jms installed. After sending a message into the pool I thought all the messsage driven beans that are…
Hasan Tuncay
  • 1,090
  • 2
  • 11
  • 30
0
votes
1 answer

How to package a message-driven bean using Maven?

I want to package a message-driven bean using Maven. The bean has various dependencies (external libraries) that should be packaged with it. In the end, the resulting package should be deployed on an application server (such as Wildfly). I tried to…
Renke Grunwald
  • 855
  • 1
  • 9
  • 15
0
votes
1 answer

is MessageDrivenBean no longer used from ejb3.0?

In jms, we have MessageLister , onMesssage which receives messages. Then why we need MessageDrivenBean? Is this became obsolete? In javaee6 MDB api, they say from ejb 3.0, its not used. what is difference between mdb and jms ? What is sychronous…
user3791049
  • 95
  • 1
  • 2
  • 12
0
votes
1 answer

Webpshere server is not gettin started after adding MDB configuration to ejb-jar xml

I have added MDB configuration to the ejb-jar.xml and ibm-ejb-jar-bnd.xmi files and then restart fails with throwing the below error,if i revert my changes it started working fine. Error Message: Caused by: java.lang.IllegalStateException: Parent…
0
votes
2 answers

MDB under GlassFish listening to remote JMS Queue (MQ via GenericJMSRA)

I am trying to configure a MDB in Glassfish 3.1.2 to listen on a remote JMS Queue (MQ 7 via GenericJMSRA 2.0.1). When I try to use the JNDI names to define my MDB like this @MessageDriven(activationConfig = { …
SebastianH
  • 2,172
  • 1
  • 18
  • 29
0
votes
2 answers

simple MDB JMS client-server application on JBoss 6.1.0/Hornetq

I'm trying to realize a simple web application with an MDB running on JBoss 6.1.0 (Java EE 6 - Hornetq) to try the JMS and the MDB. I need also a simple stand-alone client that send text message on the queue where the MDB is listening. This is just…
user2572526
  • 1,219
  • 2
  • 17
  • 35
0
votes
1 answer

synchrous message listener jms

I have one doubt during my work with JMS. As I know it's possible to create synchrous message consumer. However, I must launch it with a frequency, because of the fact that there is no listener. Next, to consume messages synchrously from a queue I…
KitKatBoy
  • 1
  • 2
0
votes
2 answers

Websphere 8.5.5.2 with an MDB (Activation Specification) with Websphere MQ 7.1

I have an application deployed on Websphere 8.5.5.2, The application has many MDBs, those MDBs are bound to response queues on Websphere MQ 7.1 using websphere "Activation specification". However, I always get this error in the console and MDBs…
user2770375
0
votes
0 answers

OpenEjb embedded maximum number of MessageListener

I've developed a stand-alone java application using OpenEJb embeddable and containing many MessageListeners listening to a queue hosted by a weblogic server. After my application starts the weblogic admin console shows me my listeners correctly…
seph
  • 118
  • 1
  • 5
0
votes
1 answer

How to get a static List from a Message Driven Bean?

I am using a Message Driven Bean for storing messages in a list as you can see in the code given below: /** * * @author sana-naeem */ @MessageDriven(mappedName = "jms/Queue-0", activationConfig = { @ActivationConfigProperty(propertyName =…
Developer
  • 161
  • 2
  • 3
  • 15
0
votes
1 answer

Bean Managed MDB and Database exceptions

I have a Bean managed MDB -InvoiceInquiryMessageBean with the following definition which calls a CMT - InvoiceManager which performs database operations. The MDB is explicitly mentioned as Bean managed and the onMessage() has a transaction…
0
votes
0 answers

serialize class in one to many

I use ObjectMessage object in message driven bean it's need class to be serialize ,now I have two class with onetomany relationship ,How make them Serializable . javax.jms.JMSException: Failed to serialize object appears when don't serialize…