• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

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

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<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" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">

<!--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 ]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic