I'm using Embedded Jboss in my plain java apps. I always bootstrap this way
Bootstrap.getInstance().bootstrap();
Bootstrap.getInstance().deployResourceBase(HelloBean.class);
// my app code... //
Bootstrap.getInstance().shutdown();
I'd like to know if there's any way to have a dynamic deploy, for example I don't know first which classes I'll use, but I want to scan a directory at intervals and load the classes I find.
Thanks a lot!