  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - OracleThinPersistenceManager instabili | - OracleThinPersistenceManager instabili 2007-08-10 - By barnaby33
Back When testing a normal failure mode using oracle thin persistence manager I get an exception when trying to add new messages. The sequence goes like this
1) Add 2 messages to the queue. ( On checking the jms_messages table there appears to be 4 messages being written. I assume it has something to with the blob workaround but not sure.) 2) Make sure MDB cannot deliver messages. 3) Turn off server without exiting JBoss. (This seems to be a very normal failure condition to me) 4)Turn on Jboss server. (During startup JMS system barfs on the two records with null blobs. I worked around this by modifying the select query to only return messages with non-null blobs.) 5)Add more messages. This causes a SQL exception because each time you restart the server, the messageid is reset to zero. (I looked through the code to find that little nugget.)
So I'd like to sub-class the oraclethinpersistence manager and goto the jms _messages table to find out what its highest messageId is, then increment it by one and use this as the messageid for the new message. I wrote a class that does just that but when I startup jboss I get an exception along the lines of major and minor version are incorrect. Is there something preventing me administratively, say an xml config option, that I need to change? Whats are some other alternatives to my situation?
Josh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073225#4073225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073225 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |