• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Calling database stored procedures using EJB

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Can one call database stored procedures using EJBs? Is it also possible to handle REF CURSORs using EJB?
regards
panchalee
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
YES Ucan
..USe PREPARE CALL
Raj
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can use stored procedures in an EJB.
But I personally dont feel it is advisible to use any database specific or application specific code in your EJB. This woul;d prevent your EJB from being portable across different databases or across different application servers (incase either of them changes tomorrow).
However I am a novice to EJBs. I maybe wrong. Pls recheck on this.
Regards,
Avinash
reply
    Bookmark Topic Watch Topic
  • New Topic