1 Reply Latest reply on Jul 4, 2002 1:59 AM by davidjencks

    ClassLoader -- Replacing/ Augmenting

    mingardia

      Hello,
      Our company makes a product that allows us to encrypt jar files and then through a special class loader load classes given a "license" from our company.

      In simple java applications this works fine. When trying to do this in an ejb container, it gets more tricky. Similarly if we would want to load our EJB's from a database vs the local file system the same issue would arise. In both cases we want to somehow specify the classloader to use to load our EAR class files.

      1. Could this be done in Jboss?
      2. How?


        • 1. Re: ClassLoader -- Replacing/ Augmenting
          davidjencks

          Instead of making a new classloader, which might be difficult, could you make a new kind of URL and supply a URL handler to decrypt the stream/ fetch it from the db? I've never done something like this but it seems more orthoganal to the JBoss classloader functionality than modifying the classloader itself.