5 Replies Latest reply on Jul 25, 2006 10:52 AM by peterj

    Big problem!How to lookup a entitybean which only have local

    pxpwxj

      I want to look up entity bean in my session bean.I give the name "LeagueBean" to this entity bean in my ejb-jar.xml ,source code is:

      <ejb-name>LeagueBean</ejb-name>
      <local-home>team.LocalLeagueHome</local-home>
      ..................



      and i do not use a jboss.xml file .when i deploy it in jboss,i see some output in the log:
      ..........
      Bound EJB LocalHome 'LeagueBean' to jndi 'local/LeagueBean@18635912'
      ...............

      everytime i deploy it ,the jndi for my bean's localhome is different ,it seems to me i can not control it's jndi name at all.If like this,how can i decide the jndi name to call the "lookup()" function.
      Is it a bug??

      help me!tell me how to lookup a entity bean which only have local interface.tks