• Post Reply Bookmark Topic Watch Topic
  • New Topic

"create" doesnt add record to the database!

 
JasmineS Saeid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a CMP Bean with the following configuration
JBoss 4.0.2 + Postgres 8
The database configuration is successfull (table is created dynamically thr the bean).

The table gets created but the home.create() method doesnt add any record to the database.

Please help !!!
 
Chris Brat
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What does happen?
Exception ?
Method is successfully/unsuccessfully called?

Chris
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What data source have you configured? Some containers have two types of data source, and you must use the correct one for an EJB. Failure to get your JDBC connection from the correct data source may cause the Connection to not participate in the EJB container transaction.

And what transaction attribute have you set for the create() method? It should be Required or RequiresNew.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!