• Post Reply Bookmark Topic Watch Topic
  • New Topic

LocalHome Object creation  RSS feed

 
sabu ekm
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
im a beginner in ejb. im planning to use local interfaces insted of remote interfaces because my application is a non-distributed application. but while JNDI lookup im getting null pointer exception. ie i cannot create the localhome interface.
if any 1 having idea regarding that pls help me.
thanks in advance
sabu ekm
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sabu,

It would be helpful if you post some of your client codes & the stack trace. When did the NullPointerException hit you? When you attempted to call the create method on the interface?
 
Bhaskar Rao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sabu,
I think the lookup on the home object has returned you null. Check the JNDI name that you have used to lookup the home object.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!