message-driven-bean

Can't deploy Maven jar (MDB) on Jboss 6

风格不统一 提交于 2019-12-12 06:04:13
问题 I am using jboss6, message driven bean, hibernate and maven2 in my application when i try to compile my mdb using maven2 and deploy on jboss6 i get the following error: Failed to create Resource MessageBean.jar - cause: java.lang.Exception:Failed to start deployment [vfs:///opt/jboss6/server/default/deploy/MessageBean.jar] during deployment of 'MessageBean.jar' - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments

@MessageDriven bean not receiving messages

半城伤御伤魂 提交于 2019-12-11 19:34:30
问题 I made some changes per suggestions from another question to turn my class into a @Singleton rather than @Stateless , however I'm no longer receiving messages in my @MessageDriven Bean as I was before. Suggestions? Note that the topic is correctly defined in jbossmq-destinations-service.xml @javax.ejb.Singleton(mappedName="MySingletonClass") public class MySingletonClass implements SomeInterface { private Timer timer = null; @javax.annotation.Resource TimerService timerService; /** * Creates

Stop message being redelivered to MDB

匆匆过客 提交于 2019-12-11 15:38:40
问题 Consider the following scenario : I have a MDB that receives a message. On receiving this message is triggers a series of operations.Some calls are isolated in EJB's that have Requires_New as a transaction attribute and they all succeed. At the very end of the transaction I call sessionContext.setRollbackOnly(). Will this cause the message to be redelivered again to the MDB ? 回答1: It depends what acknowledge mode you use with your mdb session. You can see a full article regarding this topic

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

JMS durable subscriber in a cluster with multiple instances

末鹿安然 提交于 2019-12-11 07:34:02
问题 I am going to be using Payara BTW.... Suppose I have: A JMS Topic An MDB configured as a durable topic subscriber Multiple instances of the MDB are deployed across the cluster and they are all using the same client ID value to make the durable subscription. If this is the scenario, and given the way client ID values and durable subscriptions work, is it correct to say that only 1 of the MDB instances across the cluster will succeed in connecting and the others will fail? Thanks! Suppose you

JMS and MessageDriven EJB Bean

时光毁灭记忆、已成空白 提交于 2019-12-11 05:36:46
问题 I have a problem with message driven EJB. I have too applications Web Service and EJB application which contains MessageDrivenBean. To send message to JMS I'm using ObjectMessage: Here is my code: Connection connection = connectionFactory.createConnection(); Session session = connection.createSession(false, 1); MessageProducer messageProducer = session.createProducer(queue); ObjectMessage outMessage = session.createObjectMessage(); outMessage.setObject(((Serializable) operation)); LOGGER

Null EntityManager/EJB Injected into MDB

杀马特。学长 韩版系。学妹 提交于 2019-12-10 18:33:32
问题 I have a message-driven bean (MDB) deployed to WebLogic 12.1.3. I tried to inject an entity manager into the MDB using the @PersistenceContext annotation, but the entity manager is null. I also tried injecting a simple stateless session bean and it too is null. However, the MessageDrivenContext is injected correctly. What am I missing? From what I can tell searching SO and Google, you should be able to inject EJBs and entity managers into MDBs. I am able to inject them into other parts of the

Making maxSession property configurable for a specific MDB in JBoss EAP 5.1

你离开我真会死。 提交于 2019-12-09 13:19:06
问题 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 = "maxSession", propertyValue = "5") . In order to change the value of the maxSession, the code has to be compiled everytime. Is there a way to make it user configurable so that there is no build required and without restarting jboss? Kindly help. 回答1: This is the way to externalize this setting from

MessageDrivenBean instance identifier

半世苍凉 提交于 2019-12-08 13:42:46
问题 Is it possible to get the identifier of the MDB instance that is executing? I have a pool of MDB (e.g. 10) and I set in my messages the property JMSXGroupID in order to have the same MDB instance processing all the messages with same JMSXGroupID. To check that I'd like to log an identifier of the current MDB instance: how can I get that information? 回答1: There is no such identifier according to EJB specification, although probably it may be achieved using your MDB vendor API. You can always

Message selector on MDBean not working properly

浪尽此生 提交于 2019-12-08 06:36:07
问题 I'm having a bit of a problem with an application, the message-selector of my MD Bean doesn't respond to the filter specified, if i use inside the message-selector : module in ('TELCOM1') works perfectly , but if i add a second parameter to the filter (module in ('TELCOM1' , 'TELCOM2') ) it doesn't work at all, doesn't respond to either parameter. Does anybody have an idea of why can this be , I'm running my application on a WAS 8.5.5 but if i run it on WAS 6 works fine. 回答1: Ok .. doing some