• 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

invoking ejb from jsp in websphere

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using websphere app developer v5.
I have a stateless session bean ConverterBean created in the package
com.ibm.converter in the ejbmodule.
How would i import this bean in a jsp file which is in the web module.
I have tried the following but the thing is giving errors,that the bean converter is not found.

Thank you and regards.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your problem is not importing the package, then use the JSP page directive with the import statement to import the package that you need. Read the JSP 1.1 specification (or ANY book on JSP) for details.
Kyle
 
author
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just looking over your code I see you are obtaining the converterhome in the jspInit method, but you are invoking the create method on the converterhome some time later when the service method gets invoked. That will surely cause problems, since the default scope for a JSP is page. I suggest that you consider maintaining a reference to a handle for your converterhome in some other scope (perhaps session or application) depending on your particular needs. HTH.
Regards,
 
reply
    Bookmark Topic Watch Topic
  • New Topic