The most likely issue is that you're deployment descriptor puts the session bean's methods in a transaction of type supports or notsupported. Make sure that the transaction type is Required, RequiresNew, or Mandatory. -danch paul tamas wrote: > Hi, > > I have experienced the same problem like Norton: the entity bean works > fine for all operations(insert, update, delete, select), and the > stateless session bean works but only for select. > I'm running JBoss 2.2.1 on Win2K connecting to Oracle. > Maybe someone could explain. > > Thanks, > Paul > >> From: Norton Lam <[EMAIL PROTECTED]> >> Reply-To: [EMAIL PROTECTED] >> To: "'[EMAIL PROTECTED]'" >> <[EMAIL PROTECTED]> >> Subject: [JBoss-user] Database inserts via stateless session beans >> Date: Tue, 29 May 2001 16:43:31 -0500 >> >> 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 > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication.
