vert-x3 / vertx-lang-ruby

Vert.x Ruby support
Apache License 2.0
14 stars 12 forks source link

Verticles share the same classloader even if they use different parameters #10

Open cescoffier opened 9 years ago

cescoffier commented 9 years ago

Right now, all Ruby Verticles use the same classloading environment inherited from the container creation. This configuration is created by the first verticle deployment. So this does not support isolation groups and extra classpath entry.

Unfortunately, to support these, we would need to create a set of container, each one having its own configuration. We can introduce a Map<k, ScriptingContainer> where k is computed from the deployment classloader.

We would also need a way to stop container when the container is not used anymore (after undeployment).

purplefox commented 9 years ago

Yes, I think isolation groups are a Java only feature.