Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to declare ejb-local-ref in the jboss-3.2.6

 
Yu Tao
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ervery one



My IDE eclipse2.1.3 lomboz 2.1.3
My Server jboss-3.2.6

in jboss.xml

<session>
<ejb-name>StoreAccess</ejb-name>
<jndi-name>StoreAccessBean</jndi-name>
<local-jndi-name>StoreAccessLocal</local-jndi-name>
<ejb-local-ref>
<ejb-ref-name>ejb/CustomerLocal</ejb-ref-name>
<jndi-name>CustomerLocal</jndi-name>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/Test</res-ref-name>
<jndi-name>java:/Test</jndi-name>
</resource-ref>

<method-attributes>
</method-attributes>
</session>
when deploy my ejb,eclipse report "Element type "ejb-local-ref" must be declared"

how to declare ejb-local-ref

thanks
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You have to specify <ejb-local-ref> in ejb-jar.xml file too for this particular bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic