Hi, all,
I'm getting some strange behavior with my code and I was hoping someone
would
be able to give me some hints as to what I'm doing wrong.
I have a stateless session bean that is doing a database insert. I have log
messages printing before the PreparedStatement argument settings and after
the
PreparedStatement.executeUpdate(). All print out with no exceptions and
everything seems to work. However, when I check the db, the row isn't
inserted. A manual insert through the db interface works fine.
I know my set up is ok because I have entity beans doing inserts, updates,
and deletions happily. In fact, I am running a JUnit test suite that
includes
a run of the session bean, which isn't working, and an entity bean test that
works fine.
Both the entity bean and session bean are calling the same util method
to get the database connection from JBoss.
Upon further investigation, the stateless session bean is not inserting
rows into the db table that the entity bean successfully inserts into.
So it's definitely something related to the session bean.
Is there something special I have to do in order to do database transactions
in a stateless session bean?
I'm running JBoss 2.2.1 on Linux connecting to MySQL.
Thanx.
Norton
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user