[jboss-dev-forums] [Design of POJO Server] - Re: ServiceMetaData has the most recent dependencies/attribu
anil.saldhana@jboss.com
do-not-reply at jboss.com
Fri Feb 22 11:14:58 EST 2008
"scott.stark at jboss.org" wrote : The problem is the use of metaData.getClass().getName() as this returns the implementation class. You need to use JBossAppMetaData.class.getName() since that is the signature. Its the metaData instance that has to be an implementation of this. The ctor parameters also look incorrect that it should be metaData rather than deployment:
|
|
| | ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData();
| | serviceConstructor.setSignature(new String[] { String.class.getName(),
| | JBossAppMetaData.class.getName(),Boolean.class.getName()});
| | serviceConstructor.setParameters(new Object[] {contextId, metaData, Boolean.TRUE});
| | createJaccPolicyBean(serviceConstructor, unit);
| |
|
That is the change I am doing now. Rather than the use of metaData.getClass().getName(), I am doing getMetaDataClassType() which is an overridden method in the sub-deployers (EarSecurityDeployer will pass JBossAppMetaData as the meta data class type).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131485#4131485
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131485
More information about the jboss-dev-forums
mailing list