Meaningless Drivel is fun!*
The moose likes BEA/Weblogic and the fly likes WL guru's - message bean not receiving messages from JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "WL guru Watch "WL guru New topic

WL guru's - message bean not receiving messages from JMS

Greg Garrison

Joined: Nov 11, 2002
Posts: 4
On weblogic 6.2 simple message bean does not receive the messages sent to a queue. The weblogic console states that there are 24 messages in the queue and 15 consumers but sending a message does not trigger the onMessage function. Here is the code and deployment descriptors:
Message bean:
package testbeans;
import javax.ejb.*;
import javax.jms.*;
public class TextMessageBean implements MessageDrivenBean, MessageListener {

MessageDrivenContext ejbContext;

public void ejbRemove() throws EJBException {
System.out.println("Exiting TextMessageBean");
ejbContext = null;

public void ejbCreate() {

System.out.println("inside TextMessageBean.ejbCreate");
public void setMessageDrivenContext(MessageDrivenContext arg0) throws EJBException {

ejbContext = arg0;
System.out.println("inside TextMessageBean.setMessageDrivenContext");

public void onMessage(Message message) {

System.out.println("inside TextMessageBean.onMessage");

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "">
<ejb-jar >

<!-- Message Driven Beans-->









<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "">

<!--Message driven beans-->



[ November 11, 2002: Message edited by: Greg Garrison ]
[ November 12, 2002: Message edited by: Greg Garrison ]
[ November 15, 2002: Message edited by: Greg Garrison ]
It is sorta covered in the JavaRanch Style Guide.
subject: WL guru's - message bean not receiving messages from JMS
Similar Threads
Persistent Messages, What heppens if a system is started!
JMS subscription problem
No javax.jms.Destination found at the specified destination-location
jms Null or empty subscription
Failed to resolve ejb-link