I think the call to unit.getAttachment(Class) works only if the attachment has been added
to the unit without any name, because of the following pattern in AS trunk:
| // The ServiceConstructorMetaData is not serializable due to its args
| unit.addAttachment(ServiceMetaData.class, webModule);
|
| ....
|
| // Get the war URL
| WebMetaData metaData = di.getAttachment(WebMetaData.class);
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040079#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...