You should use the 2nd code snippet - the one that checks if the Module is of the right
instance.
Since, as I wrote, not all Modules are deployment Modules.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264340#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...