• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Doubt in bean lookup!

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 247
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 198
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you All! Doubt cleared!
 
reply
    Bookmark Topic Watch Topic
  • New Topic