This question is about whether CMT or BMT should be used.
I have a stateful session Bean which has a method called copy(). In this method there are two Entity Bean remote interfaces which both do an insert into a database.
My Session Bean has Container transaction-type.
My question is since I am calling two methods from my copy() method should I use BMT for my Session Bean and therefore what transaction type should I have set for both my Entity Beans?
Is is ok for my session bean to be CMT with Required attribute as well as both my Entity Beans having the same CMT and Required Attribute?
You should use CMT for both.