[JBoss Messaging] - Re: regarding JBM_MSG_REF table
by jhowell@redhat.com
When you get alot of messages in memory, we begin to page them to disk. This is a safeguard so we don't consume all the memory in the box. As consumers pull messages out of the queues, we pull messages out of the db and load them back in to memory.
The page ord is the order in which messages get pushed and pulled form the DB.
SELECT MESSAGE_ID, DELIVERY_COUNT, PAGE_ORD, SCHED_DELIVERY FROM JBM_MSG_REF WHERE CHANNEL_ID = ? AND PAGE_ORD BETWEEN ? AND ? ORDER BY PAGE_ORD
So we get the minimum page ord and we start from there. Each batch of page_refs we load, we add that many to the page ord we start with.
This error looks like the messages were removed somehow and made the ord numbes get out of sequence. Deleting the ord numbers are fine, they will renumber themselves.
Jay:)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205697#4205697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205697
17 years, 2 months
[EJB 3.0] - Re: MDB redeploy with ...-service.xml
by Wolfgang Knauf
Hi Jaikiran,
many thanks for the suggestion with the @Depends annotation, the "NameNotFoundException" is gone now.
I modified my MDB:
@MessageDriven (activationConfig=
| {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination", propertyValue="queue/MessageBeanQueue")
| })
| @Depends(value = "knauf:service=Queue,name=MessageBeanQueue")
| public class MessageBean implements MessageListener
| {
On deploy, I see that it waits for my service:
22:49:55,640 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=Message.ear,jar=MessageEJB.jar,name=MessageBean,service=EJB3
| 22:49:55,640 INFO [JBossASKernel] with dependencies:
| 22:49:55,640 INFO [JBossASKernel] and demands:
| 22:49:55,640 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 22:49:55,640 INFO [JBossASKernel] knauf:service=Queue,name=MessageBeanQueue
| 22:49:55,640 INFO [JBossASKernel] and supplies:
| 22:49:55,656 INFO [JBossASKernel] jndi:null
| 22:49:55,656 INFO [JBossASKernel] Class:javax.jms.MessageListener
Thanks to ALRubinger for adding detailed info output of deployed beans ;-).
Wolfgang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205688#4205688
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205688
17 years, 2 months