I've downloaded the Petstore patch and looking at the web.xml, jboss-web.xml it looks to me that the calls to the EJB's are made through RMI.
For customer we have in web.xml :
<ejb-ref>
<ejb-ref-name>ejb/customer/Customer</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type> com.sun.j2ee.blueprints.customer.customer.ejb.CustomerHome
com.sun.j2ee.blueprints.customer.customer.ejb.Customer
</ejb-ref>
, missing an <ejb-link>
and in jboss-web we have
<ejb-ref>
<ejb-ref-name>ejb/customer/Customer</ejb-ref-name>
<jndi-name>TheCustomer</jndi-name>
</ejb-ref>
pointing to a global jndi name.
Am I correct ?