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

y0ur1 do-not-reply at jboss.com
Sun Mar 16 15:41:35 EDT 2008


"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

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

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



More information about the jboss-user mailing list