3 Replies Latest reply on Jul 18, 2002 12:24 PM by Shaun Appleton

    BMP Help

    Shaun Appleton Newbie

      When I run the Mastering EJB BMP example client (Roman et al) I get:

      javax.naming.NameNotFoundException: AccountHome not bound ...

      The only changes I have made are to modify the run_client.bat and compile.bat so it sees all the *.jars

      My server.log file gives:


      2002-07-15 13:24:27,750 DEBUG [org.jboss.ejb.plugins.local.BaseLocalContainerInvoker] Bound EJBLocalHome of Account to local/Account
      ...
      2002-07-15 13:24:27,781 INFO [org.jboss.deployment.MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/account.jar


      for my simple ejb-jar.xml file:

      <?xml version="1.0"?>

      <ejb-jar>
      <enterprise-beans>

      <ejb-name>Account</ejb-name>
      examples.AccountHome
      examples.Account
      <local-home>examples.AccountLocalHome</local-home>
      examples.AccountLocal
      <ejb-class>examples.AccountBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>examples.AccountPK</prim-key-class>
      False
      <resource-ref>
      <res-ref-name>jdbc/DefaultDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      </enterprise-beans>

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>Account</ejb-name>
      <method-intf>Local</method-intf>
      <method-name>*</method-name>


      <ejb-name>Account</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>


      Is this default behaviour?
      And why is my AccountHome not bound?

      Thanks in advance,

      Shaun