• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Callling Stored Procedures from CMP

 
Ram Pra
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
We are facing a strange problem here in calling stored procedures from a CMP bean using TYPE $ drivers , the container throws an javax.ejb.ObjectNotFoundException.
We are using JRun3.1 and the same code works fine when used with JDBC-ODBC Bridge.
This happens only in the finder methods, the stored procedure calls from remove() and store() methods work fine.
Does anyone know the reason for this, i have tried using three type 4 drivers - JTurbo, INet Opta and Data Direct drivers.
All of these have the same problem.
Any insight on this would be much appreciated.
Thanks in advance.
Prashanth
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CMP stands for container managed persistence. You shouldn't be calling any stored procedures.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to use BMP for using stored procedure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic