How about creating a ClassLoader that delegates to an EJB (or Servlet) which loads up the correct byte code?
Then on the client it's just a matter of using that ClassLoader as your TCCL.
In fact, if you use a Servlet, you can probably just use URLClassLoader.