[jboss-as7-dev] cl.getResources() doesn't work from module-based code
David M. Lloyd
david.lloyd at redhat.com
Wed Sep 12 14:01:06 EDT 2012
On 09/12/2012 12:48 PM, Bill Burke wrote:
>
>
> On 9/12/2012 12:58 PM, David M. Lloyd wrote:
>>
>> I hope you *really* hate modules now. :-)
>>
>
> No, modules really help out with things a lot. But, IMO, a lot of this
> complexity you just outlined could be avoided if the various integration
> points in AS7 set the context classloader to a intuitive default. For
> EE deployments, the default TCCL is *VERY* logical. For custom login
> modules, there is a "module" attribute which allows you to specify the
> module to load the custom class from. Why not just set the TCCL to the
> specified/declared "module"? Isn't that what you would expect?
That seems perfectly reasonable to me. I think that any time it makes
sense to set TCCL we should do so.
--
- DML
More information about the jboss-as7-dev
mailing list