[jboss-dev-forums] [Design of EJB 3.0] - Jndi bindings

scott.stark@jboss.org do-not-reply at jboss.com
Mon Dec 3 19:37:16 EST 2007


Related to JBCTS-718, what bindings are supposed to exist for a bean with an ejb-jar.xml entry like:

  |         <session>
  |             <ejb-name>RemoveBean</ejb-name>
  |             <home>com.sun.ts.tests.ejb30.common.migration.twothree.TwoRemoteHome</home>
  |             <remote>com.sun.ts.tests.ejb30.common.migration.twothree.TwoRemoteIF</remote>
  |             <local-home>com.sun.ts.tests.ejb30.common.migration.twothree.TwoLocalHome</local-home>
  |             <local>com.sun.ts.tests.ejb30.common.migration.twothree.TwoLocalIF</local>
  |             <business-local>com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveLocalIF</business-local>
  |             <business-local>com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveLocal2IF</business-local>
  |             <business-remote>com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF</business-remote>
  |             <business-remote>com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF</business-remote>
  |             <ejb-class>com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.RemoveBean</ejb-class>
  |             <session-type>Stateful</session-type>
  |             <remove-method>
  |                 <bean-method>
  |                     <method-name>retain</method-name>
  |                 </bean-method>
  |                 <retain-if-exception>true</retain-if-exception>
  |             </remove-method>
  |             <remove-method>
  |                 <bean-method>
  |                     <method-name>retain2</method-name>
  |                 </bean-method>
  |                 <retain-if-exception>true</retain-if-exception>
  |             </remove-method>
  |             <remove-method>
  |                 <bean-method>
  |                     <method-name>remove</method-name>
  |                 </bean-method>
  |                 <!-- optional, default is false
  |                 <retain-if-exception>false</retain-if-exception>
  |                 -->
  |             </remove-method>
  |             <remove-method>
  |                 <bean-method>
  |                     <method-name>remove2</method-name>
  |                 </bean-method>
  |                 <retain-if-exception>false</retain-if-exception>
  |             </remove-method>
  |             <transaction-type>Container</transaction-type>
  |         </session>
  | 

and jboss.xml entry like:

  |     <session>
  |       <ejb-name>RemoveBean</ejb-name>
  |       <jndi-name>stateful_remove_descriptor_RemoveBean</jndi-name>
  |       <home-jndi-name>stateful_remove_descriptor_RemoveBeanHome</home-jndi-name>
  |       <call-by-value>true</call-by-value>
  |     </session>
  | 

I'm only seeing a global binding for stateful_remove_descriptor_RemoveBeanHome. A related client deployment has references to business interfaces on this bean that have been resolved to the stateful_remove_descriptor_RemoveBean jndi name, but this does not exist.


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

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



More information about the jboss-dev-forums mailing list