Hi.

> I did look at the ATM example. That's the thing : in ATM the message driven
> bean does not declare ANY topic or connection factory. Only the publishing
> session bean declares them. Now, how do they make the connection between the
> MDB and the topic/topicConnectionFactory declared by the publisher ? Is this
> the ONLY way of doing it (I have just an MDB in one single jar file, the
> publisher is not an EJB) ? Does anybody has a simple and working example of
> MDB under Orion ?!
   Yes. I have a working example, that works with an external topic-publisher
(stand-alone java app) and an external queue-sender (also a stand alone app).
Works :)

>>> IN EJB-JAR.XML

<ejb-jar>
 <enterprise-beans>
    <message-driven>
      <ejb-name>HelloBean</ejb-name>
      <ejb-class>HelloMSGBean.HelloBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
        <jms-destination-type>javax.jms.Topic</jms-destination-type>
      </message-driven-destination>
    </message-driven>
 </enterprise-beans>
</ejb-jar>

> All I want is to be told what needs to be in orion specific descriptors ...
> if anything needs to be there.

>>> IN ORION-EJB-JAR.XML

<orion-ejb-jar>
  <enterprise-beans>
    <message-driven-deployment name="HelloBean"
      connection-factory-location="jms/TopicConnectionFactory"
      destination-location="jms/theTopic" />
  </enterprise-beans>
</orion-ejb-jar>

> I think I forgot to mention that I'm using Orion 1.4.5 And I already found
> out another JMS problem in this version : an auto-started client (droped the
> MDB :(((, too much effort to deploy it) enters in an infinite loop when
> receiving messages from a topic - acknowledgemnt doesn't work ?! I tried to
> update to 1.4.7 and it does not work AT ALL (no more messages).
   GOT MUCH WORK TO DO!!!
   1.4.5 Bug: When deploying the MDBs it removes the destination definition
from the deployment descriptor orion-ejb-jar.xml. Thus your beans will listen
to one and the same topic (the default topic).
 
    Walk-around-1: After deploying the beans shutdown orion and edit manually
orion-ejb-jar.xml in the deployment directory (application-deployments/blah).
 
    Walk-around-2: Have only one topic and only one queue. <shrug>
 
   I think this problem is also in 1.4.7, 1.4.8, but I don't have them at
hand and I'm not so sure.
   The problem is solved in 1.5.2 for sure.
 
> Thanks !
>
> Eugen
   < REST OF MESSAGE CUT OFF >
 
   Lachezar.

Reply via email to