aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes CMP EJB 2.0 with Stored Procs?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "CMP EJB 2.0 with Stored Procs??" Watch "CMP EJB 2.0 with Stored Procs??" New topic
Author

CMP EJB 2.0 with Stored Procs??

clement valentine
Greenhorn

Joined: Apr 04, 2002
Posts: 19
Hello all,
Is it possible to use stored procedures in a CMP ejb? The primary keys for our database tables are encoded and timestamp generated using stored procs. It would be very handy if we could somehow use stored procs. instead of the container generated jdbc calls. Are there any resources available on this?
Thanks a lot
Cheers
Peter Kristensson
Ranch Hand

Joined: Jul 02, 2001
Posts: 118
If you define a CMP bean that is defined from a view instead of a table, then this might be possible. Then you can define the view using your stored procedures.
Please note that i haven't tried this, but if you make it work, please post a note on whether it was possible or not.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
As with any CMP question, it will depend entirely on the vendor's discretion. I know that in WebSphere we're considering making this a feature for a future version of WebSphere, but that it will not be supported in WebSphere 5.0.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: CMP EJB 2.0 with Stored Procs??
 
Similar Threads
refactoring a schema - views
Database Metadata
How to access an java API from oracle database
JDBC queries or stored procedure
getting ResultSet from Java Stored Procedure