Hi !
Does EJB support store procedures or not ???
Thanks
AJP
-
EJB - Store procedure support (3 messages)
- Posted by: A JP
- Posted on: January 17 2002 15:21 EST
Threaded Messages (3)
- EJB - Store procedure support by Emmanuel Proulx on January 17 2002 17:16 EST
- EJB - Store procedure support by Gal Binyamini on January 18 2002 15:58 EST
- EJB - Store procedure support by Kevin Leong on January 17 2002 18:52 EST
-
EJB - Store procedure support[ Go to top ]
- Posted by: Emmanuel Proulx
- Posted on: January 17 2002 17:16 EST
- in response to A JP
CMP entity EJBs don't support stored procedure. Stored procedures are not available in all database servers, so they are not portable.
If you want to call a stored procedure, you may do it from a Statless Session EJB or a Home Method, by calling JDBC directly. -
EJB - Store procedure support[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: January 18 2002 15:58 EST
- in response to Emmanuel Proulx
"Stored procedures are not available in all database servers, so they are not portable"
Whenever designing portable code you have to rely on some common denominator. JBCD requires portable JDBC drivers to allow invoking a "callable statement". That is all you need to call stored procedures from your EJB code, and it is portable. How you implement the callable statement is not portable across DB vendors, but the EJB code is.
Gal -
EJB - Store procedure support[ Go to top ]
- Posted by: Kevin Leong
- Posted on: January 17 2002 18:52 EST
- in response to A JP
We use stored procedures with JDBC (java.sql) extensively in our EJB content management framework - in both session and entity beans. To use stored procedures you have to use BMP entity beans. Portability across Oracle, SQL Server and Sybase is an issue - we need to write different stored procedure, esp. Oracle and SQL Server. I hope this help.
Kevin Leong
www.zhanra.com