How do I map a Queue to an MDB in iAS 6.5?

I am trying to test message driven bean(MDB) with iPlanet Application Server 6.5. Basically i am sending a text to a Queue from JSP and trying to receive from the queue and write the message to a file using MDB. But my MDB is not recognised as consumer. I mean queue broker still shows the consumer as 0. But if i use a jsp to read from a queue it works.

In Discriptor file of a MDB i have given following details. Can somebody please suggest me is any changes required in Discriptor file or is any setting to be changed specific to iAS6.5 or iMQ2.0.

<ias-ejb-jar>

<enterprise-beans>

<message-driven>

<display-name>MessageBean</display-name>

<ejb-name>MessageBean</ejb-name>

<ejb-class>test.mdb.MessageBean</ejb-class>

<destination-name>jms/Ananth</destination-name>

<transaction-type>Container</transaction-type>

<trans-attribute>NotSupported</trans-attribute>

<message-selector></message-selector>

<acknowledge-mode>Auto-acknowledge</acknowledge-mode>

<message-driven-destination>

<destination-type>javax.jms.Queue</destination-type>

</message-driven-destination>

<max-message-limit>10</max-message-limit>

<durable-name></durable-name>

<mdb-resource-ref>

<description></description>

<res-ref-name>com.netscape.server.jms.RefFSContextFactory</res-ref-nam e>

<res-type>javax.jms.Queue</res-type>

<res-auth>Container</res-auth>

</mdb-resource-ref>

<max-mdb-pool-size>10</max-mdb-pool-size>

<min-mdb-pool-size>1</min-mdb-pool-size>

</message-driven>

</enterprise-beans>

<transaction-manager-type></transaction-manager-type>

</ias-ejb-jar>

[2000 byte] By [christenscreen] at [2008-2-11]
# 1

I'd suggest you to contact iPlanet Application Server Tech

support for iAS 6.5 questions. Here are some advise that

may be helpful: first check to see if the MDB is deployed to

the server OK. Check if any exceptions in App Server's log.

Then check to see if the MDB is listening on the right destionation

by checking the deployment descriptor. If the MDB is deployed ok,

you can also use jmqcmd to list/query the destinations in the

JMQ broker (Please see JMQ Administradtion Guide) to help

identifying the physical destination name the MDB listens on.

christenscreen at 2007-7-1 > top of java,Application & Integration Servers,Sun Java System Message Queue...