0 Replies Latest reply on Dec 1, 2005 3:14 AM by David Hosier

    Deploying bsh InstanceNotFoundException

    David Hosier Novice

      I've just begun messing with the BSHDeployer in 4.0.3SP1, and I get the following log line every time my test bsh script is deployed:

      INFO [BeanShellSubDeployer] javax.management.InstanceNotFoundException: david.scripts:service=TestBshService is not registered.


      My script is just basically adapted from the example given at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=26786 and is as follows:

      import org.jboss.varia.deployment.ScriptService;
      
      objectName()
      {
       return "david.scripts:service=TestBshService";
      }
      
      getInterfaces()
      {
       return new Class[] {ScriptService.class};
      }
      


      Does anyone know of any resources (docs, examples, etc) for using bsh scripts as services in JBoss besides the link I pasted above?