• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLs in home methods of EJB 2.0 CMP Beans

 
Sun Rise
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Karthi Bala
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic