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 + ActiveMQ + Weblogic with high load

I have a company project where we are using EJB (MDB) + ActiveMQ (connected with weblogic using activemq-rar connector) + Weblogic 12 for processing transactions using QUEUEs. We have Oracle RAC as our database Our module is based on 3 MDBs: The…
0
votes
1 answer

Problem with recieving ActiveMQ messages in JBoss (low message per second count)

I'm using a remote ActiveMQ server and Message driven Beans (4 different beans) to consume the messages. In theory the message consumption should be fast (and was fast in the past). Currently the jboss consumes a very slow number of messages (4 or…
Laures
  • 5,389
  • 11
  • 50
  • 76
0
votes
0 answers

Reading messages from IBM MQ asynchronously

I want to read multiple messages from IBM MQ asynchronously . I am just using MessageDrivenBean configurations like below. import java.io.IOException; import java.util.ArrayList; import javax.ejb.ActivationConfigProperty; import…
C2D
  • 29
  • 1
  • 6
0
votes
1 answer

How to set a JMS message property within JAX-WS handler?

Is there any way to set a JMS message property within a JAX-WS handler? I am trying to set a custom property on the message, to be used by a MDB message selector. I've tried setting the properties on the SOAPMessage within a SOAPHandler, but that…
Kaleb Brasee
  • 51,193
  • 8
  • 108
  • 113
0
votes
1 answer

Is it possible to invoke a MessageDrivenBean remotely directly through a @Remote interface?

I am currently learning the basics of EJB 2+. In the book Java EE 7 The Big Picture, it was mentioned: Session beans are generally accessed through a remote interface (though, as we shall see, there are cases where a remote interface is not…
Rui
  • 3,454
  • 6
  • 37
  • 70
0
votes
2 answers

Can't deploy Maven jar (MDB) on Jboss 6

I am using jboss6, message driven bean, hibernate and maven2 in my application when i try to compile my mdb using maven2 and deploy on jboss6 i get the following error: Failed to create Resource MessageBean.jar - cause: java.lang.Exception:Failed…
0
votes
1 answer

Where to define setTrustAllPackages=true in @MessageDriven bean in external ActiveMQ

I am doing a Publish - Subscribe using external ActiveMQ (5.15.10). My application is deployed on TomEE 8.0.1 server and ActiveMQ configurations are done in tomee.xml. I am able publish the message successfully but while receiving messages am facing…
Anu
  • 1
  • 3
0
votes
2 answers

Is there a portable way to limit MDBs on a JMS queue to 1?

We have a use case, where we need to process data from a JMS queue in the order of sending, thus we need sequential processing by 1 MDB instance. Our application runs (still on an old) WildFly 9 and according to documentation I found, we annotated…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
0
votes
2 answers

Binding a queue to an EJB 3.0 MDB in WebSphere 7

I'm writing, or trying to write, Baby's First MDB on WebSphere 7. I have nearly no hair left, having pulled it all out trying to get the thing to work. It appears that I've got everything set up right, but I get no response when I put a message to…
Singlestone
  • 2,019
  • 3
  • 16
  • 18
0
votes
1 answer

Java Message Driven Bean Override

I have an MDB that I cannot modify, it is declared with annotations, not within xml file. Can I somehow override it's implementation, specifically onMessage behaviour? I tried modyfing xml files to point MDB to different class or just simply…
EyeMaze
  • 143
  • 2
  • 9
0
votes
1 answer

Queue creation for MDBs in Wildfly

I have such MDB in my application @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination",…
Alexey Usharovski
  • 1,404
  • 13
  • 31
0
votes
1 answer

EJB3.0 How to use MDB

Hey, I am new to coding in j2ee. My question is regarding MDB. I have already set up my weblogic 11g server. and the queue has been set up. I have written the client code which is a java se client that sends a msg to the queue. import…
Ng Zhong Qin
  • 1,211
  • 2
  • 15
  • 28
0
votes
2 answers

synchronous MDB communication, problem with max-pool-size

I am using Java Enterprise (3.1) with Glassfish. I have two seperate EARs which are communicating synchronously via JMS. More specifically: EAR1 uses JMS messaging to tell EAR2 what to do. EAR1 starts to listen for an answer from EAR2…
Sebastian
  • 1,932
  • 1
  • 16
  • 15
0
votes
1 answer

How to post new JMS Messages asynchronously after processing an inbound Message?

We have a scenario where, after processing an incoming message A with a Message-Driven Bean, we write a follow-up message B to another queue. We are using Glassfish 3.1. One goal in this case is that posting message B can take place asynchronously,…
user677891
  • 101
  • 1
  • 3
0
votes
1 answer

How do I create an MDB that listens to Oracle AQ queue under JBoss AS?

I need to listen to an Oracle AQ queue in a Java EE application that runs under JBoss AS 5.1. I managed to create a regular JMS client using Oracle's JMS client library, but since this is a Java EE application, I'd really like to use a MDB. I can't…
Sietse
  • 7,884
  • 12
  • 51
  • 65