• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on EJB References

 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<ejb-ref>
<ejb-ref-name/>
<ejb-ref-type/>
<home/>
<remote/>
<ejb-link/>
</ejb-ref>

Here, i dont understand what is the neccessity of <ejb-ref-type/>,<home/> <remote/> tags. Anyway there is <ejb-link> tag and container can get all these information from specified ejb-name.
Comments, please.

--Prashant
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prahant,

This Informations is provide by Bean provider to Assembler or Deployer, who is going to link the reference. This information tells the Assembler or Deployer as Iam refering this as stateless bean(stateful, entity) and home this(specified in descriptor) and component this (specified in descriptor). So Assembler or Deployer don't need to open the Bean class which is provided by bean provider to see what is the type of bean and home interface(Bean provider used in casting for lookup object). likewise for componet interface also.

If only deployer or Assembler knows exactly about the informations interface are refered by bean provider , then only they can link it correctly.

So

<ejb-ref-name/>
<ejb-ref-type/>
<home/>
<remote/>

The above informations is mandatory. The Bean provider should specified while refering the ejb-ref.

The same concept is implemented in

<resource-ref>
<ref-name></ref-name>
<ref-type></ref-type>
</resource-ref>



I hope you get me.

Regards
Kasimurugan R.
 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats cool. I got it. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic