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 concurrent instances not starting

I have a requirement where i need 40 threads to do a certain task (merging) and around 20 threads to do another task(persistence). Merging takes about 5X more time than persistence. I am using message driven beans to accomplish this concurrency. I…
0
votes
1 answer

How to connect message-driven bean to WebSphere MQ queue without activation specification or listener port

My message-driven bean: @MessageDriven( activationConfig = { @ActivationConfigProperty( propertyName = "destination", propertyValue = "jms/mytestqueue"), @ActivationConfigProperty( propertyName = "destinationType",…
bgerth
  • 1,256
  • 1
  • 12
  • 19
0
votes
1 answer

How to create a JMS 2 shared subscription with @MessageDriven

I'd like to create a shared, non-durable subscription on a topic for a message-driven EJB and was wondering how to achieve that using @MessageDriven and @ActivationConfigProperty. I've found an article describing something similar, but I'm not sure…
0
votes
0 answers

successful JMS message getting re-delivered more than once and failing

I need your help in below issue which I am facing in JMS. Scenario: step 1. I have fired a poison message, system thrown a Runtime exception and failed the message. I have put a back-out queue for moving error messages. System is moving the error…
Ravi
  • 1
  • 1
0
votes
2 answers

Jboss 5.1 ActiveMQ 5 standalone broker MDB setup

I'm attempting to use the sample broker that comes with ActiveMQ 5 with an MDB deployed on JBoss 5.1 AS. I've deployed the activemq rar to the deploy directory. I've deployed activemq-jms-ds.xml to deploy/messaging which defines my connection…
Matt Phillips
  • 11,249
  • 10
  • 46
  • 71
0
votes
1 answer

MDB is not consuming message from queue in Jboss 7.1

i am using jboss 7.1 and configure the sender to send the message into Hornet queue. I can see in Jboss admin console that message count is increasing once sender sends the message but MDB is not consuming the message. Both sender and consumer are…
code1234
  • 121
  • 1
  • 2
  • 11
0
votes
0 answers

How to speed up JMS MDB queue consumption?

I've been having issues with MDB queue consumption speed with WildFly 8, java 1.8. To show the issues I've written a simple test application which does the following: servlet sends 100 messages to a MDB, MDB simulates some processing and moves on to…
user3816378
  • 93
  • 14
0
votes
1 answer

JbossTextMessage Unicode convert failed in Linux

I'm trying to upload a xml (UTF-8) file and post it on a Jboss MQ. When reading the file from the listener UTF-8 characters are not correctly formatted ONLY in the Jboss (jboss-5.1.0.GA-3) instance running on Linux. For an instance: BORÅS is…
isurux
  • 1
  • 1
0
votes
1 answer

EJB Container Managed Transaction with JDBC Result Set and MDB

I have a Stateless session bean. In the following method I loop the list to insert each of user into the table 'user'. void saveUserList(List users) { try { conn = dataSource.getConnection(); PreparedStatement ps; try { ps…
Bogie
  • 153
  • 9
0
votes
1 answer

In Wildfly 9 is there a way to suspend only certain MDB

I am able to call :suspend and :resume from the cli, however, this suspends all beans (EJB, MDB). Is there a way to only suspend message driven beans MDBs? In my application all the work comes in via messages. If I can suspend the message…
0
votes
1 answer

Send email on connection lost between WebSphere and MQ

My configuration MDB using activation specs on WAS 7 Default MQ Resource adapter config Time to time, the connection is lost between the WAS and MQ and the MDB shuts down. Is there an easy way to send emails when it happens other than by…
Jan
  • 213
  • 1
  • 3
  • 11
0
votes
0 answers

Access a managed bean from message driven bean

i am learning JMS, i want to apply it with JSF, i created 2 managed beans the producer which sends the message and the consumer, i made a MDB which implements the messagelistner and has onMessage method, the JMS provider is Wildfly 8, i can send the…
Mohamed
  • 337
  • 3
  • 18
0
votes
3 answers

How to Selectively Process Messages from a websphere MQ

I got a MDB which picks up all the messages dropped in a Queue owned by somebody else There are many subscribers to that Queue. I am interested only in a particular type of message. Like some messages start as "Password Changed". Others are like…
juniorbansal
  • 1,249
  • 8
  • 31
  • 51
0
votes
1 answer

Wait for a asynchronous message on java

I want to know if exists a framework (or any way) to wait for a message inside a java code on asynchronous way. I repeat "asynchronous way". For example: int a=5; MyObject mio= new MyObject(); mio.setx(6); String…
Kaltresian
  • 961
  • 3
  • 14
  • 32
0
votes
0 answers

Weblogic MDB Cluster Load Balancing

We have two JVMs in a weblogic cluster configured to consume messages from a websphere queue manager. When ever more number of message comes in, we see most of the time one JVM is busy in processing message and the other one is being idle. is there…