0 Replies Latest reply on Jul 9, 2004 12:30 AM by s_k_tripathi

    jndi look up problem

    s_k_tripathi Newbie

      hi friends Please help me I could not show my ejb in jmx-console i have deplyed it under the following naming context my jboss.xml is as follows
      my os is Windows XP


      <enterprise-beans>

      <ejb-name>TestEjb</ejb-name>
      <jndi-name>java:comp/env/ejb/HelloHomeBean</jndi-name>

      </enterprise-beans>
      it is a session bean- if i dont give java:comp and deploy the bean with the simple name client says Bean not found.While in the server log file it is showing that bean has bean deployed.So please help me any body.Becuase if i deploy the bean with the above name the exception in running the client is comp not found.Then what should i do

      my ejb-jar.xml file is as follows-

      <ejb-jar>
      <enterprise-beans>

      <ejb-name>TestEjb</ejb-name>
      hello.Test.HelloHomeBean
      hello.Test.HelloBean
      <ejb-class>hello.Test.HelloEjb</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </enterprise-beans>

      <assembly-descriptor>

      <ejb-name>TestEjb</ejb-name>
      <method-name>*</method-name>

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

      If my jboss.xml is as follows

      <enterprise-beans>

      <ejb-name>TestEjb</ejb-name>
      <jndi-name>HelloHomeBean</jndi-name>

      </enterprise-beans>
      then it also show while running client that HelloHomeBean not found.
      How to lookup in jmx-console about this bean and under which namespace should i see it.jmx-console shows nothing about the bean.

      [/url]