For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > March 2004 > ejb-local-ref, a shallow referece or full tree reference ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ejb-local-ref, a shallow referece or full tree reference ?
ofer baranes

2004-03-19, 8:45 pm

if an entity-A is referece to entity-B , and entity-B
is referece to entity-C (and that is
declared in entity-B 'ejb-jar.xml' !) , when adding
'ejb-local-ref' to entity-A ,beside of adding
entity-B,should entity-C be added too ,or a one can
assume that the EJB container will use the already define
reference between entity-B and entity-C.

This is a simple situation , what about a whole graph
of references ? should one keep track on the whole graph
or let the container do that for him ?!

I have a web component in a war file ,and on its web.xml i was force by the
Container to add the ejb-local-ref to entity-c as well , otherwise there was
a NamingException for unbound entity , is that the way it should be ?!

ofer baranes
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com