1 Reply Latest reply on Aug 13, 2003 7:43 AM by Adrian Brock

    question about class loading

    Sven Baumgarten Newbie

      Hi everyone!

      I use JBoss 3.2.2. I want to protect my application by encoding the class files in my jar archives. In this way I have to decode them while class loading.

      Now my question: In normal way I do not have to load my classes myself. They are loaded automatically by JBoss (I do not really know where this is done). Is there any way to complement this "standard" class loader so that If one of my encoded classes should be loaded I can decode it before loading? If not is there another way to do that?


      Thanks
      Sven

        • 1. Re: question about class loading
          Adrian Brock Master

          You can implement your own URL handler for this
          and specify that URL in the deployment scanner.

          e.g.


          ./deploy,
          secured:/file:/whatever


          Where you implement the URL handler for secured:/
          to perform your own operations.

          The problem is that anything that JBoss can do,
          somebody else can do as well using the same classes.

          Regards,
          Adrian