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

Why is websphere saying there is no configuration for MDB

I'm using ejb 2.1 MDB. I've created the bean and the ibm-bnd-xmi file looks like this
Sujay DSa
  • 1,172
  • 2
  • 22
  • 37
0
votes
3 answers

Can Message driven beans (MDB) listen on "external" MQ?

I am trying to understand concepts related to MDB, MQ, JMS. I did research on SO before asking this question. Is this possible scenario: MDB deployed on Application Server, say on JBOSS (on physical Server-A). MQ (say ApacheMQ) on a difference…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
0
votes
1 answer

where is messageSelector applied in message-driven beans?

When is the messageSelector logic inside @MessageDriven evaluated? Is it applied in the message broker itself? In the JMS client? Or in the bean's proxy wrapper?
wrschneider
  • 17,913
  • 16
  • 96
  • 176
0
votes
1 answer

MQJCA4004: Message delivery to an MDB 'null' failed with exception: 'deactivate of endpoint is in progress.'

I have an EAR deployed on WAS 7.0.0.3 server and the web service also deployed. MQ listener is up and running in my WAS server and corresponding MQ host, channel name and MQ queue name are configured correctly. It is the response queue. Whenever I'm…
michael
  • 1
  • 2
0
votes
0 answers

TomEE simple-mdb-with-descriptor does not work

http://tomee.apache.org/examples-trunk/simple-mdb-with-descriptor/README.html I tried this example as it is.. meaning, copied all the code and created a jar file having META-INF/ejb-jar.xml in it. copied jar to my WAR project under…
hrish
  • 1
0
votes
1 answer

Message driven bean error - java.lang.Object is not an interface

I was getting an odd exception when I was trying to create yet another Message Driven Bean. I have used standard configuration as we already had on the project, but I could not start the EAR. The exception I was getting - java.lang.Object is not an…
Javo
  • 435
  • 1
  • 5
  • 16
0
votes
1 answer

Getting error while initializing JMS in Wildfly 8.2.0

I am working on MDB in wildfly 8.2.0. Server configuration used is standalone-full-ha.xml. I am getting the below error trace when the line Connection connection = connectionFactory.createConnection() gets executed. TRACE [org.hornetq.core.client]…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

JMS TransactionRolledbackLocalException leads to GlassFish breakdown

My basic problem: the MessageDriven bean throws an Exception somewhere, which leads to a rollback in the JMS Queue until it just blows up and the server breaks down. I can't even look for the Exceptions to solve the problem because the server-logs…
GameDroids
  • 5,584
  • 6
  • 40
  • 59
0
votes
1 answer

Can a messagelistener or mdb be stateful?

related to my question on jca inbound transaction management. How to control XAResource in inbound jca resource adapter for conversational transaction? For an inbound resource adapter I need to keep a transaction open and execute different actions…
0
votes
1 answer

Read specific message from queue based on Correlation ID

I have a mdb attached to a listener port of websphere which will read the message from the queue and persist it to database. Now while sending a request using sessionBean, I added correlation id to the message. msg.setJMSCorrelationId(theID); My…
V Joe
  • 271
  • 1
  • 5
  • 23
0
votes
1 answer

could not find a provider for the InitialContextFactory com.sonicsw.jndi.mfcontext.MFContextFactory

I am getting this exception when i am trying to start the WAS server. I have created JMS providers in console and set all the jar files in the classpath. External initial context factory defined is com.sonicsw.jndi.mfcontext.MFContextFactory with…
V Joe
  • 271
  • 1
  • 5
  • 23
0
votes
1 answer

how to dynamically set ActivationConfigProperty values

I'm implementing a message driven bean with an ActivationConfigProperty annotation. The annotation property values are coming from a Database Entity POJO. Is it possible to dynamically set the ActivationConfigProperty property value(s) with values…
user1772523
  • 141
  • 1
  • 9
0
votes
2 answers

javax.ejb.EJBAccessException: Caller unauthorized

I encountered above exception after migrating an application from QuartzMDB with quartz-ra.rar to EJB Timers in Jboss AS 6.1 . (As a part of upgrading application to wildfly 8.1) Exception is occurred at a job that uses following…
0
votes
1 answer

NullPointerException when creating connection from connection factory

I am trying to create a connection using connectionFactory.createConnection() method but it returns a null. Below is my code : @Stateless public class test { @Resource(mappedName = "java:comp/DefaultJMSConnectionFactory") …
Troller
  • 1,108
  • 8
  • 29
  • 47
0
votes
2 answers

MQ message endpoint gets paused automatically-IBM websphere

The configured MQ message endpoints get paused automatic many times and we had to keep eye-on and then resume it manually. Any idea on why it gets auto-paused? Is the receiver channel gets full with MQ messages ? MQ version 6 is being used…
Rahul_tcs
  • 43
  • 1
  • 8