-
1. Re: question on jms table "JMS_MESSAGES" column size
marco.battaglia Sep 7, 2010 11:40 AM (in response to niefeng)I'm using MySql 5 deployed under Solaris 10. I have increased the size of DESTINATION field. It works fine.
It's in production from six months on two "twin system" with JBossMQ under JBoss4.2.2.
They managed 120k message per day. I think it's a good test for you.
-
2. Re: question on jms table "JMS_MESSAGES" column size
marco.battaglia Sep 9, 2010 10:03 AM (in response to niefeng)Inside this file: deploy/jms/[yourBD]-jdbc2-service.xml
you find queries executed to select messages:
SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=?
SELECT_MESSAGE_KEYS_IN_DEST = SELECT MESSAGEID FROM JMS_MESSAGES WHERE DESTINATION=?
SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
The field destination contains also the selector and the subscriber.
You can search in java sources of jms where this sql are used, and configure indexes on DB.
Good work!
SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=?SELECT_MESSAGE_KEYS_IN_DEST = SELECT MESSAGEID FROM JMS_MESSAGES WHERE DESTINATION=?SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?