jboss-mdb

jBoss deployment of message-driven bean spec violation

人走茶凉 提交于 2020-01-15 18:14:22
问题 I have an java EE application which has one message-driven bean and it runs fine on JBoss 4, however when I configure the project for JBoss 6 and deploy on it, I get this error; WARN [org.jboss.ejb.deployers.EjbDeployer.verifier] EJB spec violation: ... The message driven bean must declare one onMessage() method. ... org.jboss.deployers.spi.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. But my bean HAS the onMessage method! It would not have worked

Possible to stop MDB in Weblogic 8.x?

半城伤御伤魂 提交于 2020-01-07 06:55:14
问题 Is it possible to programatically stop an MDB from listening to a queue in Weblogic 8.1? I know this can be done in JBoss and later versions of Weblogic but I wasn't sure if it's possible in 8.x. 回答1: This is possible with Weblogic 9.x and Weblogic 10.x through the MessageDrivenEJBRuntimeMBean that exposes suspend/resume methods (see BEA WebLogic Server 9.0 API Reference or WebLogic Server 10.3 API Reference) as explained in this Thread: Suspending/Pausing a MDB's Consumption Programmatically

Maximum number of messages sent to a Queue in OpenMQ?

徘徊边缘 提交于 2020-01-03 03:22:17
问题 I am currently using Glassfish v2.1 and I have set up a queue to send and receive messages from with Sesion beans and MDBs respectively. However, I have noticed that I can send only a maximum of 1000 messages to the queue. Is there any reason why I cannot send more than 1000 messages to the queue? I do have a "developer" profile setup for the glassfish domain. Could that be the reason? Or is there some resource configuration setting that I need to modify? I have setup the sun-resources.xml

How does the MDB instance picked from a particular container pool?

佐手、 提交于 2019-12-24 23:42:58
问题 I'm wondering how the MDB instance is re-used from a particular container pool.In standardjboss.xml, the standard MDB container pool is configured. In jboss-container.xml ther are two MDB specific container-pool configuration that extends the standard MDB configuration. There is no where in the source I could see certain MDBs are associated with a particular pool. I want to know how the few MDB instances are re-used from a particual pool and other MDB instance is used from an other MDB pool.

JBoss7 remote MDB connection to JMS queue -Connection failure has been detected

旧时模样 提交于 2019-12-24 11:27:46
问题 I am trying to develop an MDB for listening to remote queue in JBoss7, I Didn't receive messages from the queue. I got warnings in the server log: 11:32:41,882 WARN [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /137.72.223.212:50835. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might

Message Driven Bean Selectors (JMS)

你说的曾经没有我的故事 提交于 2019-12-22 08:39:32
问题 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 回答1: To my knowledge, this is not possible. There may be implementations that will allow it via

hello world with JMS on Glassfish

≯℡__Kan透↙ 提交于 2019-12-11 10:12:03
问题 Following the JMS example in Java EE 7 with GlassFish 4 Application Server, p 203, I can send messages, but but can't seem to receive messages: sending a message: thufir@doge:~$ thufir@doge:~$ appclient -client NetBeansProjects/MessageSender/dist/MessageSender.jar Mar 05, 2015 3:47:05 AM org.hibernate.validator.internal.util.Version <clinit> INFO: HV000001: Hibernate Validator 5.0.0.Final Mar 05, 2015 3:47:05 AM com.sun.messaging.jms.ra.ResourceAdapter start INFO: MQJMSRA_RA1101: GlassFish MQ

How to make MDB Activation Spec contextual properties configurable?

喜欢而已 提交于 2019-12-11 00:16:07
问题 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")}) . In order to change the value of the maxSessions, the code has to be compiled everytime. Even if i configure it in ejb-jar.xml instead of as an annotation , i need to compile the code and generate EAR file. Is there a way to make it user configurable

problem with seam and mdb on jboss5.1

你说的曾经没有我的故事 提交于 2019-12-08 04:39:05
问题 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

how many Message Driven Beans are created in Jboss?

只愿长相守 提交于 2019-12-07 17:35:20
问题 JBoss: 6 or 7 Question1: How many instances of Message Driven Bean are created by Jboss to handle messages? Question2: How to configure number of Message Driven Beans created by JBoss ? 回答1: According to this JBoss EAP 5 (JBoss AS 6) documentation: https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html/Performance_Tuning_Guide/sect-Performance_Tuning_Guide-Message_Driven_Beans.html You need to take care of two concepts Pool Size: This pool is named