[jboss-dev-forums] [Design of POJO Server] - Re: unit.getAttachment(Class type) returning null
anil.saldhana@jboss.com
do-not-reply at jboss.com
Tue Apr 24 01:31:58 EDT 2007
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#4040079
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040079
More information about the jboss-dev-forums
mailing list