Hello,
I am trying to create a session bean which should
refer to some entity contained in another jar via
logical name. Session and entity beans will be
deployed on the same Weblogic 6.1 server machine. 
I should use @ejb.ejb-external-ref tag in the case (am
i right?). After generation I get non-empty <ejb-link>
tag in ejb-jar.xml and empty <reference-descriptor>
tag in weblogic-ejb-jar.xml: 
----- class level tags
/**
 * @ejb.bean         name="SomeBean"
 *                   type="Stateless"
 *                   view-type="both"
 *                   jndi-name="some/name"
 *                   local-jndi-name
="some/local/name"
 * @ejb.ejb-external-ref
 *      view-type = "local"
 *      link = "AccountBean"
 *      ref-name = "ejb/Account"
 *      type = "Entity"
 *      home = "some.AccountLocalHome"
 *      business = "some.AccountLocal"
 */
----------ejb-jar.xml
<ejb-local-ref >
     <ejb-ref-name>ejb/Account</ejb-ref-name>
     <ejb-ref-type>Entity</ejb-ref-type>
     <local-home>some.AccountLocalHome</local-home>
     <local>some.AccountLocal</local>
     <ejb-link>AccountBean</ejb-link>
</ejb-local-ref>
----------weblogic-ejb-jar.xml:
      <reference-descriptor>
      </reference-descriptor>

In this case Weblogic will not compile ejb: "In
ejb-jar.xml, the EJB 'SomeBean' contains an invalid
ejb-link in ejb-local-ref...... No EJB with ejb-name
'AccountBean' could be found". 
If remove <ejb-link> tag, Weblogic fails to compile it
also: "In ejb-jar.xml, the EJB 'SomeBean' contains an
invalid ejb-local-ref 'ejb/Account'. The ejb-local-ref
must either have an ejb-link set or an
ejb-local-reference-description must be added to the
weblogic-ejb-jar.xml descriptor for this
ejb-local-ref."

How can I avoid generating <ejb-link> tag and fill
reference-descriptor with proper values?

Thanks,
Sergey Zelenin.


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to