1 Reply Latest reply on Jan 22, 2002 4:47 AM by Katarzyna Hedlund

    My session bean cannot insert a row into the database

    Katarzyna Hedlund Newbie

      I work with MS SQLServer 7.0. I have created a Session Bean with a public function, the function uses an insert-statement. When I invoke the function from a client-program, everything seems to work OK. There is no error message from JBoss neither from the client. I invoke another function from my client program, to select from the database the row I just inserted, and it returns the inserted data. That could make me convinced that the new row is inserted into database. But... I cannot see any change in the database. The insert is not "real", it exists only in JBoss. What is wrong? Isn't it possible to make insert statements from a session bean? Should I have an entity bean instead?
      Grateful for an answer - Katarzyna