#67 Gen constants for ejb-ref COMP_NAMEs

closed
nobody
ejbdoclet (28)
5
2002-07-09
2002-07-09
No

XDoclet should generate constants for the
COMP_NAMEs declared in the ejb-refs for a bean.

Ie For BeanA that has an ejb-ref to BeanB, I declare an
ejb:ejb-ref (or
ejb:ejb-external-ref) tag and an appserver tag to bind the
BeanB's COMP_NAME
to a JNDI_NAME for BeanA. During BeanA's
setSessionContext() I would like to
resolve the reference to BeanB's Home using the
COMP_NAME. At the moment you must manually
include a second String specifying the same
COMP_NAME as
declared in the ejb-ref tag in BeanA's header.

It seems sensible to automatically generate the
COMP_NAME constant for beans that are *referenced*.

NB The BeanUtil class that XDoclet can generate is not
a solution as it (aberrantly IMO) generates a
COMP_NAME for the bean itself and the beans
that are referenced.

Kind of like putting the cart before the horse :-)

Discussion

  • Aslak Hellesřy

    Aslak Hellesřy - 2002-07-09

    Logged In: YES
    user_id=49846

    Dupe of #558937

     
  • Aslak Hellesřy

    Aslak Hellesřy - 2002-07-09
    • status: open --> closed
     

Log in to post a comment.