Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in bean lookup!  RSS feed

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I need to access the bean from the servlet. So, i have something like, (copied from a web site)



ejb-jar has something like,



When i look up an reference from the JNDI, it returns what?

I need to know here 'objref' is reference of which object?
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
objref refers to the HomeObject Stub implementing Home Interface MyTestSessionHome returned by the EJB Container to its client...
 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ram!

It the container returns 'HomeObjectStub' only, then only this statement is not enough in ejb-jar.xml?



why we specify these things,


1. 'HomeObjectStub' will be created by the container and it will be returned to the client?
2. Already 'HomeObjectStub' should be registered with the JNDI service?

Please give answers for these 3.

Thank You again for your reply Ram.
 
Prabhakar Reddy Bokka
Ranch Hand
Posts: 198
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By looking at the ejb specification you can get the answers to those whatever you asked.

Coming to the access issue, It not a big task. You will be able to find it searching in google.

Let me know if any issues on that part.
 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you All! Doubt cleared!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!