Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic problem

 
shail jcp
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anybody tried javabean and jsp combination ?
I have placed the javabean in the server classes folder
the jndi naming code is in javabean.
The jsp instantiates the javabean , and javabean contacts EJB
Now when i call the jsp it gives error 500
about javax.naming.InitialContext
where as i am not using this
if i directly call eJB from jsp it works even when i import
this package
but with javabean it does not
why so
Any clues
 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shail,
There is a theory that i can give but there is no validation for the same. Here Goes : U see java beans are intra process components while as EJB's are Inter Process Components and in case u try to access JavaBean from a JSP page ( which is a WL Process component), the problem arises while as when u try to access the EJB there shud and is no problem.
HTH
Sahil
p.s:Names can be deceptive
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic