jboss-mdb

problem with seam and mdb on jboss5.1

老子叫甜甜 提交于 2019-12-06 20:08:26
I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and submit a message to queue after the server start it is working ok. Is there a posibility to stop or delay the sending off messages on server startup and start sending them only when seam is fully funcional? I tried the @Depends antotatin on the bean but withowt

Configurable values to MDB annotations

我的未来我决定 提交于 2019-12-05 20:46:22
问题 I'm trying to use this method for receiving mail in our EJB3 app. In short, that means creating an MDB with the following annotations: @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "imap.company.com"), @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = "INBOX"), @ActivationConfigProperty(propertyName = "storeProtocol", propertyValue = "imap"), @ActivationConfigProperty(propertyName = "debug", propertyValue =

Message Driven Bean Selectors (JMS)

你说的曾经没有我的故事 提交于 2019-12-05 15:31:33
I have recently discovered message selectors @ActivationConfigProperty( propertyName="messageSelector", propertyValue="Fragile IS TRUE") My Question is: How can I make the selector dynamic at runtime? Lets say a consumer decided they wanted only messages with the property "Fragile IS FALSE" Could the consumer change the selector somehow without redeploying the MDB? Note: I am using Glassfish v2.1 To my knowledge, this is not possible. There may be implementations that will allow it via some custom server hooks, but it would be implementation dependent. For one, it requires a change to the

Configurable values to MDB annotations

南笙酒味 提交于 2019-12-04 03:50:48
I'm trying to use this method for receiving mail in our EJB3 app. In short, that means creating an MDB with the following annotations: @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "imap.company.com"), @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = "INBOX"), @ActivationConfigProperty(propertyName = "storeProtocol", propertyValue = "imap"), @ActivationConfigProperty(propertyName = "debug", propertyValue = "false"), @ActivationConfigProperty(propertyName = "userName", propertyValue = "username"),

Configuring an MDB in JBOSS

南楼画角 提交于 2019-12-02 14:30:54
问题 How maxMessages property affects the MDB? For example: @ActivationConfigProperty(propertyName = "maxMessages", propertyValue="5"). How would this value affect if maxSessions is 10? 回答1: The JBoss docs are a bit wooly on this, they say MaxMessages is defined as The number of messages to wait for before attempting delivery of the session, each message is still delivered in a separate transaction (default 1) I think you were wondering if it affects the number of threads or concurrent sessions

When is messaging (e.g. JMS) an alternative for multithreading?

流过昼夜 提交于 2019-11-30 20:39:28
I work on a data processing application in which concurrency is achieved by putting several units of work on a message queue that multiple instances of a message driven bean (MDB) listen to. Other than achieving concurrency in this manner, we do not have any specific reason to use the messaging infrastructure and MDBs. This led me to think why the same could not have been achieved using multiple threads. So my question is, in what situations can asynchronous messaging (e.g. JMS) be used as an alternative to mutithreading as a means to achieve concurrency ? What are some advantages

When is messaging (e.g. JMS) an alternative for multithreading?

三世轮回 提交于 2019-11-30 05:39:18
问题 I work on a data processing application in which concurrency is achieved by putting several units of work on a message queue that multiple instances of a message driven bean (MDB) listen to. Other than achieving concurrency in this manner, we do not have any specific reason to use the messaging infrastructure and MDBs. This led me to think why the same could not have been achieved using multiple threads. So my question is, in what situations can asynchronous messaging (e.g. JMS) be used as an

Configuring a 'retry delay' in MQ Series

五迷三道 提交于 2019-11-30 05:18:28
I'm hoping someone can help me - I'm using JBoss 5.1 and MQ Series 7 in an EJB / JMS based application. I have several message driven beans in my application, each listening on an MQ Series message queue. When an error is encountered during the processing of a message, I need to be able to configure a 'retry delay', so that mq series waits some period of time before attempting to redeliver the message. I have combed through MQ Series documentation extensively, and have not yet found a way to accomplish this in MQ Series. I know that the JBoss default JMS provider has a way to do this, but I am

Configuring a 'retry delay' in MQ Series

孤街浪徒 提交于 2019-11-29 03:17:47
问题 I'm hoping someone can help me - I'm using JBoss 5.1 and MQ Series 7 in an EJB / JMS based application. I have several message driven beans in my application, each listening on an MQ Series message queue. When an error is encountered during the processing of a message, I need to be able to configure a 'retry delay', so that mq series waits some period of time before attempting to redeliver the message. I have combed through MQ Series documentation extensively, and have not yet found a way to