Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regargding JNDI name binding  RSS feed

 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
during deployment process, i am giving a JNDI name for accessing bean.
when i am lookup for that name, iam getting a Home Object stub.
my question is, the JNDI name that i gave is assigned to Home
Object or Home Object stub.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ramakrishnan,

In theory the name is assigned to the Home Object. In practice though the container is using dynamic proxies, which are quite different then the old RMI stubs. The container is also taking the advantage of the dynamic code downloading feature that RMI provides and download the stubs from a specified URL. This looks little bit odd at first and contrary to our intuition the clients don�t really need EJB stubs. Providing the home and remote interfaces should be enough.
Regards.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!