Questions tagged [jboss-mdb]
99 questions
3
votes
3 answers
How to launch a long running Java EE job?
I need to fire off a long running batch type job, and by long we are talking about a job that can take a couple of hours. The ejb that has the logic to run this long running job will communicate to a NoSQL store and load data etc.
So, I am using JMS…

user983022
- 979
- 1
- 18
- 30
2
votes
1 answer
Should MDB call remove() after using stateless session bean?
Our years-old WebLogic J2EE application has a message-driven bean which makes use of a stateless session bean. The MDB onMessage method gets the home interface of the stateless session bean and calls the home interface's create() method to get the…

Christopher Graziano
- 421
- 1
- 5
- 8
2
votes
1 answer
Message Driven bean, is not fetching the new emails based on polling interval
I tried to fetch email using message driven bean. My intention is to capture the new emails. I have used Jboss 6.1. I enabled the pop3s in my gmail. When i start the server able to fetch the existing emails from inbox.
Once the server stated up and…

Thanigai Arasu
- 413
- 3
- 14
2
votes
0 answers
JMS 2 MDB on Wildfly 10 with activeMQ
I am migrating JMS2 MDB jboss6 to wildfly10, Invalid settings: Destination is mandatory. I have done configuration on standalone.xml, and getting following error- subscription is durable then subscription name must be specified.
17:00:29,259 ERROR…

Pavan Patidar
- 363
- 1
- 2
- 10
2
votes
0 answers
Wildfly - MDB stops processing other messages after error occur in one message
To simplify the problem I've configured an MDB with only one session.
import javax.annotation.Resource;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.MessageDrivenContext;
import…

Camilla
- 489
- 5
- 14
2
votes
2 answers
How to make MDB Activation Spec contextual properties configurable?
In our project, we are are using an MDB that listens for a message on a specific queue. It is defined as an annotation.
Example:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "maxSessions", propertyValue = "20")})
.…

Sumanth
- 595
- 3
- 14
- 39
2
votes
1 answer
Advantage of using IBM MQ Resource adapter over RemoteJMSProvider?
I need to deploy EJB3 MDB on JBOSS 5.1 and listen to the Topic deployed on IBM MQ. One way is to configure the RemoteJMSProvider inside of $JBOSS_HOME/server/default/deploy/messaging/jms-ds.xml. The second way is to use the MQ Resource adapter and…

Noor Syed
- 630
- 3
- 7
- 16
2
votes
1 answer
How to reference an embedded JCA resource adapter
For our current J2EE project based on JBoss, we need to interface with a remote system using message driven beans and a JCA resource adapter provided as a RAR file by a third party. I would like to package and deploy the entire project as an EAR…

cg.
- 3,648
- 2
- 26
- 30
2
votes
2 answers
message driven bean - notification when deployed?
is it possible to get notified inside the bean (mdb in this case) that its deployment procedure has just finished?

Michal
- 677
- 6
- 16
2
votes
2 answers
Suspend a Queue from MDB
We have an application in which we are using JMS Queue and an MDB. I want that only one message should be sent to the MDB from the Queue at a time. I mean as soon as the MDB gets a message from the Queue, it should suspend the Queue and once the…

user1818397
- 79
- 1
- 2
- 8
1
vote
1 answer
How do specify clientId and subscriptionName for EJB3 message driven bean durable subscription without hard coding the values?
I have a server running JBoss4.2.1 containing a JMS Topic. I also have multiple terminals, each running their own JBoss with an EJB3 message driven bean that need to subscribe to the topic using durable subscriptions. Since each subscription needs…
seppy
1
vote
1 answer
JMS consumer on a different JVM
My application puts in messages in a JMS queue. A bean that implements MDB and MessageListener pops messages from this queue. All this happens on a single JVM .
What I want to do is: I want the MDB and the other instances that it would get from pool…

wantobegeek
- 1,665
- 3
- 19
- 19
1
vote
6 answers
JMS Message Driven Bean worker synchronization
We are just starting to build our JMS architecture and have the following basic setup:
GLassfish v2.1
MDB listening on a Topic through a TopicConnectionFactory (all on local server)
Now, the MDB spawns a worker thread when a new message arrives…
ankthepunk
1
vote
1 answer
Controlling JMS Server: too many MDBeans created (weblogic)
I have an application that does a delayed operation. User generates 1 million messages that are stored in the JMS Queue and then a MDBeans are consuming these messages and performing some action and storing data in the database. Since JMS Queue is…

Alex
- 111
- 1
- 5
1
vote
1 answer
REQUIRES_NEW annotated method is executed without a transaction?
I have a stateless bean resposible for persisting entities to a database. This stateless bean is called by a message bean's onMessage method. The wired thing is that on the first message everything works fine, but on the next message the method…

Kimble
- 7,295
- 4
- 54
- 77