[jboss-user] [EJB/JBoss] - Re: local entity bean lookup from session bean goes wrong

jaikiran do-not-reply at jboss.com
Sun Mar 16 03:32:10 EDT 2008


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>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136924#4136924

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136924



More information about the jboss-user mailing list