Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

How to Specify Transaction Attributes for a method

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?


I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic