IntelliJ Java IDE
The moose likes JBoss and the fly likes how to declare ejb-local-ref in the jboss-3.2.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "how to declare ejb-local-ref in the jboss-3.2.6" Watch "how to declare ejb-local-ref in the jboss-3.2.6" New topic
Author

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

Yu Tao
Greenhorn

Joined: Dec 12, 2004
Posts: 28
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

Joined: Oct 18, 2004
Posts: 346
Hi,

You have to specify <ejb-local-ref> in ejb-jar.xml file too for this particular bean.
 
IntelliJ Java IDE
 
subject: how to declare ejb-local-ref in the jboss-3.2.6
 
Threads others viewed
how to connect different datasources using multiple datasource using ENC
J2EE Development with JBoss3.2
How to get the datasource from Bean through deployment descriptor
Error in deploying stateless session bean 2.1 on Jboss 5 GA
InitialContext for EJB 2.x JNDI on Glassfish v2ur2 under Windows Vista
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture