Forums Register Login

Can I choose BMP along with CM transaction (EJB newbie) ?

+Pie Number of slices to send: Send
a EJB newbie question ---

1. Can I choose BMP for entity bean persistence and meanwhile for all the transaction I choose Container managed type ?

2. if I design a scenario as follows--- I have some stateless session beans and they talk to entity beans, and I want to use BMP for entity beans. I want to have some operations like "addRecord", "deleteRecord", where should I define and implement the details for them ? should I

a) define "addRecord" in session bean, and include the JDBC SQL in session bean too.

b) define "addRecord" in session bean, but include the JDBC SQL stuff in the entity bean.

c) define and implement "addRecord" entirely in entity bean, in session bean just define a "addRecord" that only calls entity bean's "addRecord" ?
+Pie Number of slices to send: Send
Yes You can only use BMP with entity beans but with only Container managed transaction. (c)is the option to go for.
Bras cause cancer. And tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 586 times.
Similar Threads
General Questions on EJB
My SCEA Part 1Study Notes
Entity Bean Vs. DAO
EJB - Sum of a Column
EJB Notes I prepared during my preparation for SCBCD
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 22:25:20.