message-driven-bean Questions

2

Solved

When using Message Driven BEans, the destination name from where to receive messages is hard coded in the annotation @MessageDriven(mappedName = "someDestinationName") Is there a way to add this i...

2

Solved

I don't have much of a socket programming experience but I tried read a little about it. I am quite familiar with MDB and messaging queues. Someone has told me that queue(e.g. MDB) is "Not much mor...
Stanfordstang asked 19/5, 2012 at 18:59

4

Solved

We need to use queues in our Java EE application and since it is a cloud base application (deployed on OpenShift Online), we like to use amazon sqs. If I understand the theorie of the receiving pa...
Mountaineer asked 15/12, 2016 at 19:28

2

Solved

I have an MDB in WebSphere 6. The MessageListener is linked to a Tibco EMS queue. In the MDB I'm trying to write to a WebSphere MQ queue. I get the following error: WMSG0042I: MDB Listener LoanIQ ...
Isogamete asked 27/7, 2011 at 6:16

3

Solved

This is my first foray into using JMS. I have a successfully created/deployed a war file that contains a servlet that I can use to upload files. When a file is uploaded it sends a message to a JMS ...
Promptitude asked 16/8, 2011 at 21:10

1

I'm running a JBoss Wildfly 8.1.0.Final in domain mode with two nodes ("host-1" and "host-2") and need to send a message from one node to all nodes in the cluster in order to execute a certain acti...
Wheresoever asked 25/9, 2014 at 10:11

3

How to make maxSession value for an MDB user-configurable? There is an MDB that listens for a message from a specific queue. It is defined as an annotation. @ActivationConfigProperty(propertyName...
Foredo asked 7/9, 2011 at 9:13

2

Solved

When should I choose ejb async method over MDB with java message service in order to fire async long time tasks?
Modeling asked 19/11, 2014 at 19:2

2

When a user logs in, I need to insert a message (the host name, just as an example) into the database. Since it is just a text message, injecting an EJB to a client (Servlets, JSP, JSF or something...
Inlay asked 9/9, 2013 at 15:0

3

Solved

I'm wondering, why not use Session Beans instead of Message Driven Beans ? If you can call remote methods from EJBs, so why bother sending/receiving messages with Message Driven Beans (which is mo...
Mcalpine asked 1/10, 2010 at 8:54

1

I have 2 EJB app, A and B. A has a stateless session that send a message to app B (Message driven bean). App B send a message back to app A. Now, I have the value I want in the message listener i...

2

Solved

I am a relative newb to EJB. Background: I have an MDB using the WebSphere default messaging provider receiving MapMessages that has a java.sql.DataSource to do some work, using preparedstatement, ...
Zibet asked 28/11, 2011 at 17:44

4

Solved

From what I understand it is illegal to spawn threads from within an EJB as it may potentially interfere with the EJB's lifecycle. However, is it illegal to use predefined Java classes from the JDK...
Ironsides asked 3/1, 2011 at 19:38

2

Solved

I've configured the message destination type, name etc using @ActivationConfigProperty in EJB 3.0 but I wanted to configure the MDB using deployment descriptor (ejb-jar.xml) as in EJB 2.0. FYI: I'...
Heine asked 21/1, 2012 at 7:33

2

Solved

What's the best way to accomplish the following? @MessageDriven bean does some work on database on failure, I want to roll back the DB transaction but I also want the JMS message NOT to be redeli...
Botsford asked 31/12, 2011 at 17:33

2

Solved

If I have a request scoped CDI bean injected into a @MessageDriven EJB using JMS, as below, can I assume that any given Foo instance will only be used by a single onMessage invocation at a time? I...
Stevenson asked 15/12, 2011 at 20:55

1

Solved

I have a requirement that I need to process JMS Messages (via MDB) in a way that Messages belonging to a certain group (a group ID is set) are consumed by the same bean instance. The behaviour I re...
Creaturely asked 27/10, 2011 at 11:56

2

Solved

I can't get javax.jms.ConnectionFactory injected into my standalone JMS client. I get a java.lang.NullPointerException at connectionFactory.createConnection() in the code below. JmsClient.java p...
Commensurate asked 7/9, 2011 at 7:51

2

I have a MDB which listens to WebSphere MQ. It does not picks up the messages in the order that has been received by the Queue. How can i make it read it in that order? Is it possible? Should i not...
Foretopgallant asked 30/11, 2010 at 7:26

1

Solved

Is there any difference between an asynchronous JMS (Java Messaging Service) consumer vs an actual MDB (Message Driven Bean). The only difference I see is the MDB class has @MessageDriven annotatio...
Ghiberti asked 13/4, 2011 at 21:10

2

Solved

I'm having a problem with the following setup: A Java application send email msg to a JMS queue, then an MDB listening to the queue get the email msg with the onMessage method, it open a connectio...
Joaquinajoash asked 11/2, 2011 at 20:11
1

© 2022 - 2024 — McMap. All rights reserved.