message-driven-bean

Log4j for Message Driven Beans

So, here's my problem: I have a message driven bean X and would like to make use of Logger in X's onMessage() method. Lets presume that I have a single instance of the bean running in my app server, hence, I would initialize log4j in ejbCreate(). This would mean I would have to do something like this: public void ejbCreate() { Pr...

Message Driven Beans - Single Bus, Multiple Activation Specs

I have 2 Message driven beans. 2 Activation Specs for these beans. I have one Message bus and both the activation specs are configured to this one bus. I have 2 different queues and one queue connection factory configured for that one Message bus. Now, I would write my code to send a message to one of the queues at runtime after determ...

Java Message-Driven Bean does not use security settings when calling secured web service

Hi, Using Websphere 6.1, I'm attempting to call a secured web service (using a custom authentication token) from a message-driven bean. However, the call repeatedly fails because the required token is not added to the SOAP message being sent. The settings to call the relevant TokenGenerator are specified in the deployment descriptor of ...

What's the best Communication Pattern for EJB3-based applications?

I'm starting a JEE project that needs to be strongly scalable. So far, the concept was: several Message Driven Beans, responsible for different parts of the architecture each MDB has a Session Bean injected, handling the business logic a couple of Entity Beans, providing access to the persistence layer communication between the differe...

help on ejb stateless datagram and message driven beans

i have a client thats sending a message to the ejbserver using UDP, i want the server(stateless bean) to echo back this message to the client but i cant seem to do this. or can i implement the same logic by using JMS? please help and enlighten. this is just a test, in the end i want a midp to be sending the message to the ejb using dat...

Java EE 6 + JPA - Exception: Message Driven Bean cant be managed bean.

I create an Enterprise Application CustomerApp that also generated two projects CustomerApp-ejb and CustomerApp-war. In the CustomerApp-ejb, I create a SessionBean call CustomerSessionBean.java as below. package com.customerapp.ejb; import javax.ejb.Stateless; import javax.ejb.LocalBean; import javax.persistence.EntityManager; import j...

problem with seam and mdb on jboss5.1

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 su...

Greedy threads are grabbing too many JMS messages under WebLogic.

We encountered a problem under WebLogic 8.1 that we lived with but could never fix. We often queue up a hundred or more JMS messages, each of which represents a unit of work. Despite the fact that each message is of the same size and looks the same, one may take only seconds to complete while the next one represents 20 minutes of solid c...

Why not use Session Beans instead of Message Driven Beans ?

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 more difficult to develop than session beans) ? In which scenarios Message Driven Beans become useful ? ...