Is it a good practice to use direct SQL calls using JDBC in ejbHome methods of a EJB 2.0 CMP bean. The EJB specification does not specify anything about this. What are the pros and cons of this approach, any thoughts would be appreciated. Thanks
posted 13 years ago
According to blueprints, its not correct.The blueprints advises you to use Data Access Object Pattern to code all JDBC and not directly in the bean. [ February 03, 2003: Message edited by: Karthi Bala ]
Karthi Bala<br />SCJP 1.2, SCWCD 1.3, SCWCD 1.4, SCDJWS (Awaiting Result)<br /> <br />Where there is a will,there is a WAY.