Hi all,
I have an entity bean with the following tags
/**
* @ejb.bean type="CMP"
* description="Keeps the next valid key for all
DBs used"
* cmp-version="2.x"
* name="DemoDBKeyBean"
* schema="DemoDBKeyBean"
* jndi-name="ejb/DemoDBKeyBean"
* local-jndi-name="ejb/DemoDBKeyBeanLocal"
* view-type="local"
* primkey-field="name"
With a view type set to local. This generate the following in the ejb-jar.xml under a
session bean that uses the DemoDBKeyBean as well as a second entity bean (DemoDataBean)
<ejb-local-ref >
<ejb-ref-name>ejb/DemoDataBeanLocal</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>testXdoc.DemoDataBeanLocalHome</local-home>
<local>testXdoc.DemoDataBeanLocal</local>
<ejb-link>DemoDataBean</ejb-link>
</ejb-local-ref>
<ejb-local-ref >
<ejb-ref-name>ejb/DemoDBKeyBean</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>testXdoc.DemoDBKeyBeanLocalHome</local-home>
<local>testXdoc.DemoDBKeyBeanLocal</local>
<ejb-link>DemoDBKeyBean</ejb-link>
</ejb-local-ref>
Note that DemlDataBean has similar setting to DemoDBKeyBean but also has remote
interface
This however does not work because if I use:
DemoDBKeyBeanUtil.getLocalHome();
It comes up with the error message:
DemoDBKeyBeanLocal not bound
Now if I change the entity bean view-type to be both, I get the right settings under
the <session> <ejb-local-ref > part of the ejb-jar.xml and all works fine.
Is this a bug? I guess it must be common to have entity beans with only local
interfaces so I can't be the only one to of seen this.
Thanks for any help or info.
Tim
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user