This content has been marked as final.
Show 2 replies
-
1. Re: local entity bean lookup from session bean goes wrong
jaikiran Mar 16, 2008 3:32 AM (in response to y0ur1)If you are trying to create a local ref for a entity bean inside a session bean, then this piece of code
<ejb-local-ref> <ejb-ref-name>ejb/Book</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>BookHome</local-home> <local>Book</local> <ejb-link>Book</ejb-link> </ejb-local-ref>
should be declared as part of the session bean configuration:<session> <!-- All the session bean related configuration, goes here--> ..... <!-- Local reference to the entity bean goes here --> <ejb-local-ref> <ejb-ref-name>ejb/Book</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>BookHome</local-home> <local>Book</local> <ejb-link>Book</ejb-link> </ejb-local-ref> </session>
-
2. Re: local entity bean lookup from session bean goes wrong
y0ur1 Mar 16, 2008 3:41 PM (in response to y0ur1)"jaikiran" wrote:
If you are trying to create a local ref for a entity bean inside a session bean, then this piece of code<ejb-local-ref> <ejb-ref-name>ejb/Book</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>BookHome</local-home> <local>Book</local> <ejb-link>Book</ejb-link> </ejb-local-ref>
should be declared as part of the session bean configuration:<session> <!-- All the session bean related configuration, goes here--> ..... <!-- Local reference to the entity bean goes here --> <ejb-local-ref> <ejb-ref-name>ejb/Book</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>BookHome</local-home> <local>Book</local> <ejb-link>Book</ejb-link> </ejb-local-ref> </session>
You made my day! thank you