Here is the code you may be interested. I'll also attach the entire ejb-jar.xml
<message-driven>
<ejb-name>com.biperf.ejb.awardslinqservices.AsyncProcessorEJB</ejb-name>
<ejb-class>com.biperf.ejb.AsyncProcessorBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>SubscriptionDurability</activation-config-property-name>
<activation-config-property-value>NonDurable</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>DestinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>ConnectionURL</activation-config-property-name>
<activation-config-property-value>lookup://cws.cluster.QueueConnectionFactory</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>concurrencyMode</activation-config-property-name>
<activation-config-property-value>serial</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destinationName</activation-config-property-name>
<activation-config-property-value>AsyncProcessorQueue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>Destination</activation-config-property-name>
<activation-config-property-value>lookup://jms.AsyncQueue</activation-config-property-value>
</activation-config-property>
</activation-config>
<!--
<message-destination-type>javax.jms.Queue</message-destination-type>-->
<ejb-local-ref>
<ejb-ref-name>Catalog</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.biperf.services.awardslinqservices.ejb.entity.catalog.CatalogLocalHome</local-home>
<local>com.biperf.services.awardslinqservices.ejb.entity.catalog.CatalogLocal</local>
<ejb-link>ecommerceservicesEJB.jar#Catalog</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>Product</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.biperf.services.awardslinqservices.ejb.entity.product.ProductLocalHome</local-home>
<local>com.biperf.services.awardslinqservices.ejb.entity.product.ProductLocal</local>
<ejb-link>ecommerceservicesEJB.jar#Product</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ProductGroup</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.biperf.services.awardslinqservices.ejb.entity.product.ProductGroupLocalHome</local-home>
<local>com.biperf.services.awardslinqservices.ejb.entity.product.ProductGroupLocal</local>
<ejb-link>ecommerceservicesEJB.jar#ProductGroup</ejb-link>
</ejb-local-ref>
</message-driven>
[Message sent by forum member 'suneelgv' (suneelgv)]
http://forums.java.net/jive/thread.jspa?messageID=324317