Hi,
That is the way it should work. Once you restart the server it should
process all the messages. That is happening with us.
Your XMLs seems to be OK. Which version of JBoss you are using?
Can u post the few lines of code which puts the messages in queue?
bye
rama rao
----- Original Message -----
From: Howard Ginsburg <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 8:14 PM
Subject: [JBoss-user] Persistence Queue with Message Driven Bean


> I have my client send messages to a persistent queue, then have a mdb
> listening on that queue.  At runtime, everything seems to work correctly.
I
> am now trying to verify the persistence of the queue.  To do this, I
remove
> the mdb from my deployment, send messages from my client, shutdown jboss,
> redeploy my mdb, and restart jboss.  My understanding is that the messages
> should automatically get restored and triggered to my mdb.  This isn't the
> behavior I get.  It appears the messages are lost.  Any thoughts?  Here is
> my configuration:
>
> ejb-jar.xml
>
> <?xml version="1.0"?>
> <!DOCTYPE ejb-jar>
> <ejb-jar>
> <enterprise-beans>
> <message-driven>
> <ejb-name>MDBBean</ejb-name>
> <ejb-class>com.test.MDBBean</ejb-class>
> <message-selector></message-selector>
> <transaction-type>Container</transaction-type>
> <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
> <message-driven-destination>
> <destination-type>javax.jms.Queue</destination-type>
> <subscription-durability>Durable</subscription-durability>
> </message-driven-destination>
> </message-driven>
>
> </enterprise-beans>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>MDBBean</ejb-name>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
>
> </assembly-descriptor>
> </ejb-jar>
>
> jboss.xml
>
> <?xml version="1.0" encoding="Cp1252"?>
>
> <jboss>
> <enterprise-beans>
>
> <message-driven>
> <ejb-name>MDBBean</ejb-name>
> <configuration-name></configuration-name>
> <destination-jndi-name>queue/MyQueue</destination-jndi-name>
> </message-driven>
>
> </enterprise-beans>
> </jboss>
>
> jbossmq.xml
>
> <Queue>
>     <Name>MyQueue</Name>
> </Queue>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to