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

Need to know some basic things about 'EJBhome' interface and 'EJBObject' interface!  RSS feed

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

somebody please tell me who is responsible for creating the proxy objects (HomeObjectStub (IS-A EJBHome) and RemoteObjectStub (IS-A EJBObject)?

Thank You!
 
K Abhijit
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you Question correctly Ans to both your questions is EJB Container:

these both objects are RMI enabled and there reference/handles are made available to client by Container ...





 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Abhijit!

Then what is the use of JNDI?

proxy objects created by the container?

After that, proxy objects registered in the JNDI?

 
K Abhijit
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yuvaraj Mbr wrote:
Then what is the use of JNDI?

JNDI is the naming specification....
For our case we can think of something like Service Locator pattern providing Location Transparency in simple terms....
ask for Objects with Registered JNDI names and get the reference and enjoy....

yuvaraj Mbr wrote:
proxy objects created by the container?


Yes...

yuvaraj Mbr wrote:
After that, proxy objects registered in the JNDI?

Sorry I didn't get this clearly....
Are you trying to ask whether Proxy Object gets auto registered while deployment?

It looks like yor are reading some book (head First ) or article but you are trying to take out the sentence out of Context (not j2ee context )

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You All!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!