• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i access Local SLSB from jsp?

 
Karnati Sudhakar
Ranch Hand
Posts: 270
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was just going through the Netbeans Sample project Customer CMP.I just noticed some thing there.
In this project a local stateless session bean is accessed from jsp file.

Here is the code:


But when i tried i am getting NameNot FoundException.

Regards
Sudhakar Karnati
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Local beans may be accessed from the web tier as long as both modules (web and ejb) are packaged and deployed within the same EAR.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's really bad design to put code like this into a JSP. It should be in a backing bean or a servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic