EJB & Transactions Issues
Can somebody help me. I work in WSAD 5. I have to EJB projects: EJB1 and EJB2. In EJB1 i have declared a method named test1. In EJB2 a have declared a method test3. Each has no parameter. Every method conects to the same database and perfoms two diferent sql select statements. How can i call a method from another and the everything to be done in the same transaction. I want to use CMT, not BMT, so i should configure the deployment descriptor file for avery ejb. I want to know exactly how to do it so i wouldn't do any unneccesary settings. I use a DataSource not Driver Manager.If you can please give me an example code.
|