This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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
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