Hello,

I am relatively new to JBoss and Java, so please bear with me.

I am working with a servlet that receives data from a client program, 
increments a counter, updates the counter to a MySQL table/field, and reports 
the new counter back to the client for storage until the next communication.

All comms are working fine, but the update to MySQL seems to be cached in JBoss 
instead of writing directly back to the database.  The value is not accessible 
in MySQL until I re-deploy my EJB app or restart the server.  I'm guessing the 
restart causes the flushing and committing the data out of JBoss.

It may be important to the discussion to state that I'm using HttpSession 
attributes through several handshake sequences.  The update is supposed to 
occur in the 2nd handshake, but by the 3rd handshake when I query the db the 
value has still not been updated.

How do I commit SQL transactions to a MySQL database, or force the data to 
flush to MySQL? I realize MySQL doesn't support commit/rollback transactions, 
so I'm guessing my issue is in the JBoss configuration.

I appreciate any help you experts can point me to.  If you need specifics about 
my config or setup, please let me know.

Thank you!

 - Matt

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879116#3879116

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879116


-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to