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
4
votes
1 answer

How to configure Wildfly to connect to RabbitMQ?

I'm having difficulty configuring JB EAP7 to use RabbitMQ as a message broker. I have created a rabbitmq module and defined it as a global module in my standalone-ha.xml. modules/system/layers/base/com/rabbitmq/main/module.xml:
Eric B.
  • 23,425
  • 50
  • 169
  • 316
4
votes
2 answers

ActiveMQ - client already connected with same clientId error

We have a setup of JBoss EAP 7.0.0.GA connecting to ActivMQ apache-activemq-5.14.3. We are trying to setup a durable subscriber with the following configuration: @MessageDriven( name = "TestListener", activationConfig = { …
Dchucks
  • 1,189
  • 5
  • 22
  • 48
4
votes
2 answers

Controlling concurrency and consumption in MDB

Is there any standard way of controlling concurrency and consumption in an MDB? Every suggestion I've been able to find seem to be application server or resource-adapter specific (e.g. maxSession @ActivationConfigProperty). The Problem™ We run some…
snemarch
  • 4,958
  • 26
  • 38
4
votes
2 answers

ActiveMQ messagedriven bean to JSF

I am currently reading from ActiveMQ with a Message driven bean (EJB3) in the back end. The problem I am facing is that I have to update a table in my JSF page as soon as I receive the message from ActiveMQ in the message driven bean. Any…
4
votes
1 answer

Destination is mandatory

I got following error while deploying my ear in wildfly 8.1.0 server 1)Error: Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory", "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- …
Shankar S
  • 133
  • 1
  • 5
  • 15
4
votes
1 answer

How to notify(or send message) swing client from app server(EJB)?

I have a project that have clients(swing) and will have an EJB application running on server. My question is about communication. I want to use MDB's (message driven beans) when client send message to server. But i've stucked on the issue that app…
4
votes
2 answers

How can I define custome (instance) Properties for and MDB (EJB) under JBoss 7

I want to deploy two instances of the same MDB to process messages from two different Queues under jboss7 with ActiveMQ. So hier is a part of my ejb-jar.xml: FirstInstanceOfMyMDB
sam
  • 41
  • 3
4
votes
1 answer

JMS and MDB with setRollbackOnly

I have a java class which consumes messages from a queue, sending HTTP calls to some urls. I have made some search on google and also on stackoverflow (and really sorry if i have missed any sources mentioning about the problem) but couldnt find…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39
3
votes
1 answer

Java EE Application: TCP Server + Web Interface

I need to implement a TCP server with a web interface included for management. Basically, the tcp server will be listening to new connections and keeping current ones active while the web interface allow me to see information regarding these…
chrisandrew.cl
  • 867
  • 14
  • 30
3
votes
1 answer

Stop MDB from receiving messages?

I need to programmatically stop a Message-driven bean from receiving messages from a JMS queue. My environment is WebSphere Application Server v7. I think it could be done by some MBean operation on an Activation Specification MBean, but I can't…
DagR
  • 2,900
  • 3
  • 24
  • 36
3
votes
2 answers

message-driven-destination in ejb-jar.xml for JBoss7

So I am working on migration to JBoss7 ... Know I am encountering bunch of problems related to my XML (as expected). First was the Auto-acknowledge which was resolved from this thread Now I am getting: Caused…
TS-
  • 4,311
  • 8
  • 40
  • 52
3
votes
2 answers

Propagating configuration within the WAS cluster by means of MOM

I am developing application which is embedded within the cluster environment in Websphere AS. I am using several nodes and sometimes I would like to change configuration settings on the fly and propagate it to all nodes within the cluster. I don't…
3
votes
1 answer

MDB transaction retry interval

Can we control the transaction retry interval in MDB? If so, please provide an example or direct me to the documentation. We want to set up a time interval of 3 min for MDB transactions. The desire is that if the query fails \first time, then it…
vairam
  • 471
  • 1
  • 11
  • 26
3
votes
1 answer

ActivationConfig of MDB and ActivationSpec in WebSphere AS 7

I'm currently developing a small EJB 3 application for WebSphere AS 7 with WebSphere-MQSeries. It's a very simple app that mainly consists of one MDB listening on a queue, convert the incoming messages and write the extracted data into a db. I've…
Leikingo
  • 890
  • 3
  • 10
  • 23
3
votes
1 answer

MessageDrivenBean consuming JMS message twice

I'm currently running an application within Jboss. My application need to consume JMS message from an ActiveMQ (my ActiveMQ is a module of my Jboss, I followed this procedure : https://developer.jboss.org/wiki/IntegrationOfJBossAS7WithActiveMQ). As…
PurplePanda
  • 258
  • 4
  • 16
1 2
3
29 30