Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Ejb Select Method

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all...
I have created a ejb select method(finder) which returns a Set in the bean class.And to make use of this method, I have written an EJB Home method(business method). To call this EJB Home method from my JSP,Iam trying to promote that to the Home interface.But the option is being disabled.WSAD is promoting only to Local and Remote interface.What could be the reason?How to enable that option so that the method signature can be written into the Home interface and hence i can call from my JSP.
Thank you.
Radha.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi all...
I have created a ejb select method(finder) which returns a Set in the bean class.And to make use of this method, I have written an EJB Home method(business method). To call this EJB Home method from my JSP,Iam trying to promote that to the Home interface.But the option is being disabled.WSAD is promoting only to Local and Remote interface.What could be the reason?How to enable that option so that the method signature can be written into the Home interface and hence i can call from my JSP.
Thank you.
Radha.


Do you work on EJB2.0, if you use ejb2.0 cmp, you can create two kind of find method, ejbSelect & Find using ejbQL. You can create them in ejb discriptor editor of wsad, if you want to use the ql method in bean class, you should create ejbSelect method, if you want to use the method for home interface, you can create find method. You just need name the method as spec and provide an EJB QL. Wish this could help :-)
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Radha ,
I tried to reproduce your problem , but I could promote the ejbHomeXXX() method on my local Home interface . ( I am using CMP 2.0)
Check if your bean implementation class has prefix ejbHome to your method which you want as a home method .
for e.g : ejbHomeTestMyMethod(){}
 
What are you doing in my house? Get 'em tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic