0 Replies Latest reply on Aug 7, 2011 4:20 PM by Zemian Deng

    How to bind a name for custom service bean

    Zemian Deng Apprentice

      Hi there,


      I wrote a custom service and using simple META-INF/jboss-beans.xml to deploy it in JBossAS6 env. If I want the service to be accessible through JNDI locally, do I have to manually add it to a context programatically, or is there already a easier way?


      Here is sample of my service config


      <deployment xmlns="urn:jboss:bean-deployer:2.0">

          <bean name="MyService" class="foo.MyService">