This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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(){}
 
reply
    Bookmark Topic Watch Topic
  • New Topic