• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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(){}
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic