Hi,
I am currently trying to deploy a very simple Message Driven Bean (MDB) in
Orion 1.4.5.
The MDB is subscribing to a topic. To do this I have studied the atm
application and the
logging MDB used there.

Orion deploy's my MDB without any error messages but the bean is not responding when a
message is published on the topic. To me it seems like the MDB doesn't know or 
understand
what topic it should subscribe to.

I use a client to publish a message on the topic. If I start another client 
subscribing to
the same topic, everything works fine. The jms.xml file seems to be ok.

I think I am missing something connecting the MBD with the topic in the ejb-jar.xml 
file.
When I created my ejb-jar.xml file I copied the relevant parts from the atm 
ejb-jar.xml file.
I have studied other MDB examples and tried to modify my ejb-jar.xml file according to 
those
examples but so far nothing has worked.

My MDB is the src.java.ejb.NewOrderBean and the topic name is orderTopic.

This is my ejb-jar.xml file:

  <ejb-jar>
    <enterprise-beans>
      <message-driven>
     <ejb-name>src.java.ejb.NewOrderBean</ejb-name>
     <ejb-class>src.java.ejb.NewOrderBean</ejb-class>
        <message-selector>JMSType='orderTopic'</message-selector>
     <message-driven-destination>
          <destination-type>javax.jms.Topic</destination-type>
     </message-driven-destination>
      </message-driven>
    </enterprise-beans>
  </ejb-jar>

My hopes are that someone could help in this matter.

Best regards

Johan Staaf
Malmö, Sweden


Reply via email to