• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question on EJB References

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats cool. I got it. Thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic