Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Greg Garrison
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic