• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb-jar.xml

 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the tag which is in <session> tag.What actually it means?

The session bean which is described here acts as facade to an Entity Bean.

So do this ejb-local-ref> tag is ment to describe about the entity bean.

Could you please suggest? Thanks.


<ejb-local-ref>
<ejb-ref-name>ejb/local/GCBasketPitTableEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.tullib.products.eurorepo.otcee.ejb.GCBasketPitTableLocalHome</local-home>
<local>com.tullib.products.eurorepo.otcee.ejb.GCBasketPitTableLocal</local>
<ejb-link>GCBasketPitTableEJB</ejb-link>
</ejb-local-ref>
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't this the same as this?
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. It's the same.

I was badly in need of it. So have posted that again.
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take a look at the How To Ask Questions On JavaRanch page, especially Patience Is A Virtue.
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Thanks.
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was the information I could find from research.


"The ejb-local-ref element is used for the declaration of a reference to another enterprise bean's local home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing enterprise bean; the expected type of the referenced enterprise bean; the expected local home and local interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean. Used in: entity, session, message-driven "


And I want to exactly know in what all situations do we use this.

And is it compulsory to use <ejb-local-ref> every time for session fased.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!