Actually that's not correct (hence my "off the top of my head"),
as Module/ClassLoader can be created from different/multiple (sub)deployments.
e.g. ear + jars
Why exactly do you need DeploymentUnit?
What is your environment - where do you want to access DU from?
Looks like class's classloader is your starting point. Why?
Give more details and we'll find the solution together.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266887#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...