• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Specify Transaction Attributes for a method  RSS feed

Herbert Maosa
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good people,

I am wondering if anyone can educate me on how to specify transaction attributes for methods in BMP entity beans. I have a problem that I think is down to transactions not triggering correctly.

I will describe the problem.

I have an entity bean with say two business methods. Call the methods and

I have a home Collection findAll() method that I use to simply return all instaces of products from the database. I do this by simply putting all the primary keys in the Collection.

In my client, which is a servlet, I successfully execute as such

The code snippet above successfully prints the primarykeys from getPrimaryKey(); prints null from the other two methods. So I was thinking that perhaps my instance variables are not being synchoronised with the database prior to calling those methods.

Anyone to take this up?


Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!