message-driven-bean
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:[详细]
2023-03-05 02:41 分类:问答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.[详细]
2023-03-03 22:58 分类:问答Configuring an MDB to listen to multiple queues
I\'m using EJB 3.1 and I want to configure an MDB to listen to multiple 开发者_JAVA百科queues. I\'d prefer defining the queue names via XML but the other definitions via annotations.[详细]
2023-03-03 00:43 分类:问答How to stop message processing before undeploying?
Given: A JMS message queue. A timer service which puts messages to that queue periodically (from a database).[详细]
2023-02-28 15:40 分类:问答MDB onMessage does not begin until ejbTimeout ends. Shouldn't it start asynchronously?
We have a javax.ejb.TimedObject which queues messages to an MDB like so... ctx = new InitialContext();[详细]
2023-02-27 11:39 分类:问答How to handle Multithreaded insertions with unique constrain in the database using JPA/Hibernate?
in a message driven bean i persist entries to lookup-table with uni开发者_JS百科que entries. Basicly i create a select statement with the criteria api and if i don\'t find an entry, i create one.[详细]
2023-02-26 12:13 分类:问答What is the difference between JMS consumer and Message Driven Beans (MDB)
Is there any difference between an asynchronous JMS (开发者_Go百科Java Messaging Service) consumer vs an actual MDB (Message Driven Bean). The only difference I see is the MDB class[详细]
2023-02-24 21:29 分类:问答How to recover from deadlocks in Message Driven Beans in GlassFish?
I am running into a deadlock situation when receiving messages on a pool of MDBs in GlassFish. If I receive multiple messages that concurrently try to update the same set of rows, the MDB throws a Loc[详细]
2023-02-22 16:02 分类:问答How to stop rollback in MDB?
I have a onMessage method where I\'m reciving an ObjectMessage from the Queue and using that information to populate and persist a JPA entity object. But when something goes wrong while persisting the[详细]
2023-02-20 01:22 分类:问答NoInitialContextException when deploying MDB on custom resource adapter
I developed a resource adapter that I would like to use within my application ear, deployed in JBoss 5.1. After playing around with annotations and xml files, I came up with the following setup.[详细]
2023-02-12 16:07 分类:问答