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

Passing XmlBean.XmlObject to MessageDrivenBean

I have a Process from within Weblogic 10.3 that takes in an XmlObject, writes some values from that XmlObject into a table, then will be passing that xml to a JMS queue. public void clientRequest(org.apache.xmlbeans.XmlObject x0) { this.newMail =…
0
votes
2 answers

Using Oracle AQ as a JMS in JBoss5

I'm looking for a full example or detail tutorial how to set Oracle AQ as a JMSProvider. I would like to create MDB which would be executed by the messages from queue defined in Oracle AQ. I'm using JBoss AS 5.1 and Oracle 11 ================ Thanks…
krzych_PL
  • 1
  • 3
0
votes
1 answer

Can we work with MDB and EJB's in Quarkus

I tried looking into whether we can use MDBs and EJBs with the Quarkus framework, but I couldn't find any resources on Quarkus documentation. Can you please explain whether it is possible? Basically, I want to consume the message from the Artemis…
0
votes
0 answers

Inject values on EJB parent class

I have several classes that handle queues, with similar methods. I would like to move the injection part, to the parent class. But in every attempt that I have done, the injected values are always null. This is one of my child classes: import…
Accollativo
  • 1,537
  • 4
  • 32
  • 56
0
votes
0 answers

ActiveMQ Classic Resource Adapter Connection Factories

In ActiveMQ classic ra.xml we have several definitions of Connection Factories. There are the following, mentioned as Outbound(meaning used only for sending messages?), documented here:
trikelef
  • 2,192
  • 1
  • 22
  • 39
0
votes
1 answer

Wildfly JMS Topic using Message Driven Beans. Get one MDB per server

I'm working with Wildfly 25.0.1.preview, and am trying to use JMS to send a message across the cluster to every node. So far, I'm using a topic and I have everything working, but only one MDB is generated by message. The MDB is received randomly in…
Faliorn
  • 1,351
  • 3
  • 12
  • 24
0
votes
1 answer

Stop message being redelivered to MDB

Consider the following scenario : I have a MDB that receives a message. On receiving this message is triggers a series of operations.Some calls are isolated in EJB's that have Requires_New as a transaction attribute and they all succeed. At the very…
Sergiu
  • 2,502
  • 6
  • 35
  • 57
0
votes
1 answer

How to append Strings while overriding annotations on MDB using AOP (ejb3-interceptors-aop.xml)?

I am trying to override the annotations on an MDB (deployed on Jboss) using the file ejb3-interceptors-aop.xml The annotation is of the form: @MessageDriven(mappedName = "jms/someName", activationConfig = { ...…
Quicksilver
  • 249
  • 2
  • 12
0
votes
0 answers

Pending Messages in ActiveMQ

I have deployed my Java-MDB based application using ActiveMQ as messaging service . I could see that a few messages have been in pending status for quite some time on some queues. I have read that this happens when ActiveMQ delivers the message and…
Mounika
  • 11
  • 3
0
votes
2 answers

Tools for functional testing a Java EE application with message-driven beans and web services

I need to test a complete system that talks to the world entirely by JMS and JAX-WS. The flow, more or less, is this: Triggered by a single JMS message, Queries a few other external systems (via JMS or webservice). Listens for the answers on queues…
MaDa
  • 10,511
  • 9
  • 46
  • 84
0
votes
0 answers

What causes an IBM MQ Topic Subscription destination error

Getting the following error. This is on a system where two IBM WAS Application servers have an MDB that subscribe to the same MQ Topic. [4/18/22 11:01:55:843 PDT] 00000351 SibMessage W [:] CWSJY0003W: MQJCA4018: MessageEndpoint afterDelivery()…
edhnb
  • 2,122
  • 3
  • 24
  • 38
0
votes
1 answer

MDB transaction does not rollback email on timeout

I have an MDB that listens on a queue. Whenever it recieves a message, it will forward execution to a stateless session bean which has a lot of logic, updates etc. Here is the flow of logic/call chain. queue->mdb->session bean->session…
Jaizen
  • 121
  • 1
  • 11
0
votes
1 answer

Call to EJB method from a remote jboss server(servlet)

case 1: I'm having war in one jboss server and ejb jar in another jboss server. I want to call my ejb from my servlet which is present in another server. How to call it. can any one help me with a working sample and required configurations. case…
vairam
  • 471
  • 1
  • 11
  • 26
0
votes
1 answer

MDBs and dupe messages

Let's pretend that an MDB has received a message and has started processing it in a CMT/Required transaction and let's assume that the transaction might take some time to complete. In such a scenario, would it be possible for a duplicate message to…
0
votes
1 answer

jBOSS EAP 7.3 Message Driven Bean fails to deploy app during Artemis failback

I am attempting to run two instances of JBoss EAP 7.3 in a cluster. Both instances are running 2 Artemis activemq servers, one which is live and one which backs up the live server on the other EAP instance. The live backup pairs are configured to…